From 56573670c47e1e46a51e7beae40342279481691f Mon Sep 17 00:00:00 2001 From: Uwe Rathmann Date: Thu, 26 Jul 2018 12:22:40 +0200 Subject: [PATCH] enabling wheel according to readOnly fixed --- src/controls/QskRangeControl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controls/QskRangeControl.cpp b/src/controls/QskRangeControl.cpp index eb4277ad..51a6637a 100644 --- a/src/controls/QskRangeControl.cpp +++ b/src/controls/QskRangeControl.cpp @@ -223,7 +223,7 @@ void QskRangeControl::setReadOnly( bool readOnly ) // we are killing user settings here !! setFocusPolicy( readOnly ? Qt::NoFocus : Qt::StrongFocus ); setAcceptedMouseButtons( readOnly ? Qt::NoButton : Qt::LeftButton ); - setWheelEnabled( m_data->readOnly ); + setWheelEnabled( !m_data->readOnly ); Q_EMIT readOnlyChanged( readOnly ); }