summaryrefslogtreecommitdiffstats
path: root/src/app/volumeAction.h
diff options
context:
space:
mode:
authormio <stigma@disroot.org>2024-11-24 17:21:35 +1000
committermio <stigma@disroot.org>2024-11-24 17:24:01 +1000
commit14b52b5a467e1c5be5ecc9d54c252d787294df3c (patch)
treeafaec2d3a886f9ebb6ac29d9361ca521e9e7a2bb /src/app/volumeAction.h
parentcdea6d11c35d582be11361034cabef468c120a9a (diff)
downloadcodeine-14b52b5a467e1c5be5ecc9d54c252d787294df3c.tar.gz
codeine-14b52b5a467e1c5be5ecc9d54c252d787294df3c.zip
Fix mouse events not changing volume
Using the scroll wheel over the volume slider would not change the volume, neither would dragging the slider (until released) or clicking on the slider. This patch fixes the above. See: TDE/codeine#5 Signed-off-by: mio <stigma@disroot.org>
Diffstat (limited to 'src/app/volumeAction.h')
-rw-r--r--src/app/volumeAction.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/app/volumeAction.h b/src/app/volumeAction.h
index 67cfad0..2645355 100644
--- a/src/app/volumeAction.h
+++ b/src/app/volumeAction.h
@@ -18,11 +18,12 @@ class VolumeAction : public TDEToggleAction
virtual int plug( TQWidget*, int );
public slots:
- void sliderMoved( int );
+ // Update Slider and Label to \a volume
+ void setVolume(int volume);
private slots:
void toggled( bool );
- void sliderReleased() { setChecked( false ); toggled( false ); }
+ void sliderMoved(int);
public:
VolumeAction( TDEToolBar *anchor, TDEActionCollection *ac );