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) {
|
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) {
|
void MainWindow::TrayClicked(QSystemTrayIcon::ActivationReason reason) {
|
||||||
|
|
|
@ -315,7 +315,7 @@ Amarok::VolumeSlider::slideEvent( QMouseEvent *e )
|
||||||
void
|
void
|
||||||
Amarok::VolumeSlider::wheelEvent( QWheelEvent *e )
|
Amarok::VolumeSlider::wheelEvent( QWheelEvent *e )
|
||||||
{
|
{
|
||||||
const uint step = e->delta() / 10;
|
const uint step = e->delta() / 30;
|
||||||
QSlider::setValue( QSlider::value() + step );
|
QSlider::setValue( QSlider::value() + step );
|
||||||
|
|
||||||
emit sliderReleased( value() );
|
emit sliderReleased( value() );
|
||||||
|
|
Loading…
Reference in New Issue