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

@@ -341,6 +341,20 @@ void MainWidget::masterTimerData()
}
void MainWidget::wheelEvent(QWheelEvent *e)
{
if(e->orientation()==Qt::Vertical) {
if(e->delta()>0) {
panel_panel->panelDown();
}
if(e->delta()<0) {
panel_panel->panelUp();
}
}
e->accept();
}
void MainWidget::closeEvent(QCloseEvent *e)
{
panel_db->removeDatabase(rda->config()->mysqlDbname());