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
This commit is contained in:
committed by
Vadim Zeitlin
parent
cd9a8fb695
commit
1214676988
@@ -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):
|
||||
|
Reference in New Issue
Block a user