mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-11-26 15:20:29 +01: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:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user