From 6c138ebd396a39c84a90f26f25292a429654ce6d Mon Sep 17 00:00:00 2001 From: Uwe Rathmann Date: Tue, 5 Mar 2024 09:18:42 +0100 Subject: [PATCH] spinBox without decoration does not make much sense until we support ediatble boxes --- examples/gallery/inputs/InputPage.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/examples/gallery/inputs/InputPage.cpp b/examples/gallery/inputs/InputPage.cpp index efc52e11..8f41c912 100644 --- a/examples/gallery/inputs/InputPage.cpp +++ b/examples/gallery/inputs/InputPage.cpp @@ -62,16 +62,10 @@ namespace { auto spinBox = new QskSpinBox( 0.0, 100.0, 1.0, this ); + spinBox->setSizePolicy( Qt::Horizontal, QskSizePolicy::Fixed ); spinBox->setPageSize( 5 ); spinBox->setValue( 35 ); } - - { - auto spinBox = new QskSpinBox( 10.0, 100.0, 1.0, this ); - spinBox->setPageSize( 10 ); - spinBox->setDecoration( QskSpinBox::NoDecoration ); - spinBox->setValue( 50 ); - } } }; }