From c1de001da4592fa409420b8ecff9bd8c8f5cc13a Mon Sep 17 00:00:00 2001 From: Uwe Rathmann Date: Tue, 9 Jul 2019 13:51:47 +0200 Subject: [PATCH] useless code removed --- examples/layouts/main.cpp | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/examples/layouts/main.cpp b/examples/layouts/main.cpp index 820fff46..6a020936 100644 --- a/examples/layouts/main.cpp +++ b/examples/layouts/main.cpp @@ -13,14 +13,9 @@ #include #include -#include #include #include -#include -#include #include -#include -#include #include #include @@ -46,14 +41,7 @@ int main( int argc, char* argv[] ) tabView->addTab( "Grid Layout", new GridLayoutPage() ); tabView->addTab( "Flow Layout", new FlowLayoutPage() ); tabView->addTab( "Linear Layout", new LinearLayoutPage() ); - - int dynamicIndex = tabView->addTab( "Dynamic\nConstraints", new DynamicConstraintsPage() ); - - auto button = tabView->buttonAt( dynamicIndex ); - QskTextOptions textOptions = button->textOptions(); - textOptions.setWrapMode( QskTextOptions::WordWrap ); - button->setTextOptions( textOptions ); - + tabView->addTab( "Dynamic\nConstraints", new DynamicConstraintsPage() ); tabView->addTab( "Stack Layout", new StackLayoutPage() ); tabView->setCurrentIndex( 0 );