From 7a180cfe5e9fefe1f69da84b46c34d9cf2ca4dca Mon Sep 17 00:00:00 2001 From: Uwe Rathmann Date: Thu, 28 Nov 2024 12:00:46 +0100 Subject: [PATCH] the corrected mouse/touch handling works without extending the handle selection area handle selection --- src/controls/QskSlider.cpp | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/src/controls/QskSlider.cpp b/src/controls/QskSlider.cpp index 82c935e08..8b04275f1 100644 --- a/src/controls/QskSlider.cpp +++ b/src/controls/QskSlider.cpp @@ -20,16 +20,7 @@ QSK_SYSTEM_STATE( QskSlider, Pressed, QskAspect::FirstSystemState << 2 ) static QRectF qskHandleSelectionRect( const QskSlider* slider ) { - auto rect = slider->subControlRect( QskSlider::Handle ); - -#if 1 - // minimum handle strut size TODO ... - const QSizeF strutSize( 60, 60 ); - const auto w = qMax( ( strutSize.width() - rect.width() ) / 2, 0.0 ); - const auto h = qMax( ( strutSize.height() - rect.height() ) / 2, 0.0 ); -#endif - - return rect.marginsAdded( { w, h, w, h } ); + return slider->subControlRect( QskSlider::Handle ); } static QRectF qskSliderSelectionRect( const QskSlider* slider )