From 3b72f1e9d94fbae88b004b7623a45ae90094bf98 Mon Sep 17 00:00:00 2001 From: Tobias Doerffel Date: Tue, 27 Nov 2012 23:36:42 +0100 Subject: [PATCH] Widgets/Fader: increment/decrement by 1 via scroll wheel As per popular demand, incrementing/decrement fader value by 1 instead of 5 when using the scroll wheel. --- src/gui/widgets/fader.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/gui/widgets/fader.cpp b/src/gui/widgets/fader.cpp index e94a26d94..ae088dd38 100644 --- a/src/gui/widgets/fader.cpp +++ b/src/gui/widgets/fader.cpp @@ -1,8 +1,8 @@ /* * fader.cpp - fader-widget used in mixer - partly taken from Hydrogen * - * Copyright (c) 2008-2011 Tobias Doerffel - * + * Copyright (c) 2008-2012 Tobias Doerffel + * * This file is part of Linux MultiMedia Studio - http://lmms.sourceforge.net * * This program is free software; you can redistribute it and/or @@ -153,11 +153,11 @@ void fader::wheelEvent ( QWheelEvent *ev ) if ( ev->delta() > 0 ) { - m_model->incValue( 5 ); + m_model->incValue( 1 ); } else { - m_model->incValue( -5 ); + m_model->incValue( -1 ); } updateTextFloat(); s_textFloat->setVisibilityTimeOut( 1000 );