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());
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
//
|
||||
// A Dedicated Cart Wall Utility for Rivendell.
|
||||
//
|
||||
// (C) Copyright 2002-2019 Fred Gleason <fredg@paravelsystems.com>
|
||||
// (C) Copyright 2002-2020 Fred Gleason <fredg@paravelsystems.com>
|
||||
//
|
||||
// This program is free software; you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License version 2 as
|
||||
@@ -51,6 +51,7 @@ class MainWidget : public RDWidget
|
||||
void rmlReceivedData(RDMacro *rml);
|
||||
|
||||
protected:
|
||||
void wheelEvent(QWheelEvent *e);
|
||||
void closeEvent(QCloseEvent *e);
|
||||
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user