mirror of
https://github.com/clementine-player/Clementine
synced 2025-01-22 07:26:47 +01:00
Made mouse wheel events on both the tray icon and the volume widget change the volume by a smaller amount. Fixes issue #145
This commit is contained in:
parent
5c4118dff5
commit
7415b7f4bd
@ -479,7 +479,7 @@ void MainWindow::LibraryDoubleClick(const QModelIndex& index) {
|
||||
}
|
||||
|
||||
void MainWindow::VolumeWheelEvent(int delta) {
|
||||
ui_.volume->setValue(ui_.volume->value() + delta / 20);
|
||||
ui_.volume->setValue(ui_.volume->value() + delta / 30);
|
||||
}
|
||||
|
||||
void MainWindow::TrayClicked(QSystemTrayIcon::ActivationReason reason) {
|
||||
|
@ -315,7 +315,7 @@ Amarok::VolumeSlider::slideEvent( QMouseEvent *e )
|
||||
void
|
||||
Amarok::VolumeSlider::wheelEvent( QWheelEvent *e )
|
||||
{
|
||||
const uint step = e->delta() / 10;
|
||||
const uint step = e->delta() / 30;
|
||||
QSlider::setValue( QSlider::value() + step );
|
||||
|
||||
emit sliderReleased( value() );
|
||||
|
Loading…
Reference in New Issue
Block a user