From 39f0e5b433e9da0474c0aa40fbe3f1adc03d4c95 Mon Sep 17 00:00:00 2001 From: ali kettab Date: Thu, 24 Nov 2022 20:18:42 +0100 Subject: [PATCH] Fix compatibility with the other ports for wxSlider in wxQt --- src/qt/slider.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/qt/slider.cpp b/src/qt/slider.cpp index 0c49365424..8396d969b5 100644 --- a/src/qt/slider.cpp +++ b/src/qt/slider.cpp @@ -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 );