Version: (using KDE KDE 3.5.5) Installed from: FreeBSD Ports OS: FreeBSD In previous versions volume was changed when clicking with left button. Now, in 1.4.5, the right button both changes volume and shows the volume menu.
SVN commit 633527 by markey: Fix regression: right-clicking on sound control would change volume BUG: 141672 M +9 -0 sliderwidget.cpp M +1 -0 sliderwidget.h --- branches/stable/extragear/multimedia/amarok/src/sliderwidget.cpp #633526:633527 @@ -414,6 +414,15 @@ } void +Amarok::VolumeSlider::mousePressEvent( QMouseEvent *e ) +{ + if( e->button() != RightButton ) { + Amarok::Slider::mousePressEvent( e ); + slideEvent( e ); + } +} + +void Amarok::VolumeSlider::contextMenuEvent( QContextMenuEvent *e ) { KPopupMenu menu; --- branches/stable/extragear/multimedia/amarok/src/sliderwidget.h #633526:633527 @@ -129,6 +129,7 @@ virtual void leaveEvent( QEvent* ); virtual void paletteChange( const QPalette& ); virtual void slideEvent( QMouseEvent* ); + virtual void mousePressEvent( QMouseEvent* ); virtual void contextMenuEvent( QContextMenuEvent* ); virtual void wheelEvent( QWheelEvent *e );
SVN commit 633534 by markey: Forward-port bugfix from stable branch: Right-click on volume slider would change volume CCBUG: 141672 M +9 -0 sliderwidget.cpp M +1 -0 sliderwidget.h --- trunk/extragear/multimedia/amarok/src/sliderwidget.cpp #633533:633534 @@ -441,6 +441,15 @@ } void +Amarok::VolumeSlider::mousePressEvent( QMouseEvent *e ) +{ + if( e->button() != Qt::RightButton ) { + Amarok::Slider::mousePressEvent( e ); + slideEvent( e ); + } +} + +void Amarok::VolumeSlider::contextMenuEvent( QContextMenuEvent *e ) { Q3PopupMenu menu; --- trunk/extragear/multimedia/amarok/src/sliderwidget.h #633533:633534 @@ -136,6 +136,7 @@ virtual void leaveEvent( QEvent* ); virtual void paletteChange( const QPalette& ); virtual void slideEvent( QMouseEvent* ); + virtual void mousePressEvent( QMouseEvent* ); virtual void contextMenuEvent( QContextMenuEvent* ); virtual void wheelEvent( QWheelEvent *e );
*** Bug 141948 has been marked as a duplicate of this bug. ***