2025-04-26 Fred Gleason <fredg@paravelsystems.com>

* Cleaned up compiler warnings in 'rdpanel/'.

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason 2025-04-26 17:55:07 -04:00
parent c978b45c4f
commit 36efa3e50a
2 changed files with 8 additions and 8 deletions

View File

@ -25002,3 +25002,5 @@
* Cleaned up compiler warnings in 'rdlogmanager/'.
2025-04-26 Fred Gleason <fredg@paravelsystems.com>
* Cleaned up compiler warnings in 'rdmonitor/'.
2025-04-26 Fred Gleason <fredg@paravelsystems.com>
* Cleaned up compiler warnings in 'rdpanel/'.

View File

@ -2,7 +2,7 @@
//
// A Dedicated Cart Wall Utility for Rivendell.
//
// (C) Copyright 2002-2023 Fred Gleason <fredg@paravelsystems.com>
// (C) Copyright 2002-2025 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
@ -333,13 +333,11 @@ void MainWidget::resizeEvent(QResizeEvent *e)
void MainWidget::wheelEvent(QWheelEvent *e)
{
if(e->orientation()==Qt::Vertical) {
if(e->delta()>0) {
panel_panel->panelDown();
}
if(e->delta()<0) {
panel_panel->panelUp();
}
if(e->angleDelta().y()>0) {
panel_panel->panelDown();
}
if(e->angleDelta().y()<0) {
panel_panel->panelUp();
}
e->accept();
}