Fix compatibility with the other ports for wxSlider in wxQt

This commit is contained in:
ali kettab 2022-11-24 20:18:42 +01:00
parent a1df8042c6
commit 39f0e5b433

View file

@ -165,6 +165,10 @@ bool wxSlider::Create(wxWindow *parent,
m_qtSlider->setInvertedAppearance( style & wxSL_INVERSE );
// For compatibility with the other ports, pressing PageUp should move value
// towards the slider's minimum.
m_qtSlider->setInvertedControls(true);
wxQtEnsureSignalsBlocked blocker(m_qtSlider);
SetRange( minValue, maxValue );
SetValue( value );