mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-10-12 09:33:37 +02:00
2020-05-12 Fred Gleason <fredg@paravelsystems.com>
* Fixed a regression that broke the ability to scroll through Sound Panel panels by means of the mouse wheel. Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
@@ -2024,6 +2024,20 @@ void MainWidget::paintEvent(QPaintEvent *e)
|
||||
}
|
||||
|
||||
|
||||
void MainWidget::wheelEvent(QWheelEvent *e)
|
||||
{
|
||||
if((air_panel!=NULL)&&(e->orientation()==Qt::Vertical)) {
|
||||
if(e->delta()>0) {
|
||||
air_panel->panelDown();
|
||||
}
|
||||
if(e->delta()<0) {
|
||||
air_panel->panelUp();
|
||||
}
|
||||
}
|
||||
e->accept();
|
||||
}
|
||||
|
||||
|
||||
void SigHandler(int signo)
|
||||
{
|
||||
pid_t pLocalPid;
|
||||
|
@@ -102,6 +102,9 @@ class MainWidget : public RDWidget
|
||||
void closeEvent(QCloseEvent *);
|
||||
void paintEvent(QPaintEvent *e);
|
||||
|
||||
protected:
|
||||
void wheelEvent(QWheelEvent *e);
|
||||
|
||||
private:
|
||||
void RunLocalMacros(RDMacro *rml);
|
||||
void StopEvent(int button_id);
|
||||
|
Reference in New Issue
Block a user