From 4dfa2c66b4fd5e14a26039e074ffbe2f05e9440d Mon Sep 17 00:00:00 2001 From: ali kettab Date: Thu, 24 Nov 2022 17:28:19 +0100 Subject: [PATCH] Remove commented out code from wxSlider implementation --- src/qt/slider.cpp | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/qt/slider.cpp b/src/qt/slider.cpp index 3833ad4ff3..e874378b0e 100644 --- a/src/qt/slider.cpp +++ b/src/qt/slider.cpp @@ -81,19 +81,6 @@ bool wxSlider::Create(wxWindow *parent, SetRange( minValue, maxValue ); 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): - if ( style & wxSL_VERTICAL ) - { - m_qtSlider->setTickPosition( style & wxSL_LEFT ? QSlider::TicksLeft : - QSlider::TicksRight ); - } - else // horizontal slider - { - m_qtSlider->setTickPosition( style & wxSL_TOP ? QSlider::TicksAbove : - QSlider::TicksBelow ); - } -#endif return QtCreateControl( parent, id, pos, size, style, validator, name ); }