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:
Fred Gleason
2020-05-12 12:51:12 -04:00
parent 155d99fecf
commit 40e2081b7a
7 changed files with 78 additions and 2 deletions

View File

@@ -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;

View File

@@ -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);