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-12-07 13:14:51 +1000
commit673f35da4c96122fda0f69514bce1fced1ca6b4e (patch)
tree46d0614e52f3d4791dfbd8112208c590d55c9560 /src/app/volumeAction.h
parent2ae198284fb1baddcdd64820d705258a2bceda5d (diff)
downloadcodeine-673f35da4c96122fda0f69514bce1fced1ca6b4e.tar.gz
codeine-673f35da4c96122fda0f69514bce1fced1ca6b4e.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> (cherry picked from commit 14b52b5a467e1c5be5ecc9d54c252d787294df3c)
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 );