From 1214676988989a8fe501aac11978f2bd0da26945 Mon Sep 17 00:00:00 2001 From: Mick Waites Date: Mon, 2 Sep 2019 11:18:44 +0100 Subject: [PATCH] Set default page size for wxSlider as in the other ports Make the page size 1/10 of the total range, as in wxMSW. Closes https://github.com/wxWidgets/wxWidgets/pull/1524 --- src/qt/slider.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/qt/slider.cpp b/src/qt/slider.cpp index 1b8e1f96a7..a97f78db60 100644 --- a/src/qt/slider.cpp +++ b/src/qt/slider.cpp @@ -80,6 +80,7 @@ bool wxSlider::Create(wxWindow *parent, m_qtSlider->blockSignals(true); SetRange( minValue, maxValue ); m_qtSlider->blockSignals(false); + SetPageSize(wxMax(1, (maxValue - minValue) / 10)); #if 0 // there are not normally ticks for a wxSlider // draw ticks marks (default bellow if horizontal, right if vertical):