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:
David Sansome 2010-03-31 23:45:52 +00:00
parent 5c4118dff5
commit 7415b7f4bd
2 changed files with 2 additions and 2 deletions

View File

@ -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) {

View File

@ -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() );