enabling wheel according to readOnly fixed

This commit is contained in:
Uwe Rathmann 2018-07-26 12:22:40 +02:00
parent 7e765a903a
commit 56573670c4

View File

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