From d74711bfd8d4773cf91c49950c36b09a1ed7362d Mon Sep 17 00:00:00 2001 From: Peter Hartmann Date: Fri, 14 Jan 2022 09:59:44 +0100 Subject: [PATCH] some more debugging etc. --- examples/boxes/main.cpp | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/examples/boxes/main.cpp b/examples/boxes/main.cpp index d6bd06ef..dc240122 100644 --- a/examples/boxes/main.cpp +++ b/examples/boxes/main.cpp @@ -364,7 +364,7 @@ static void addColoredBorderRectangles1( QskLinearBox* parent, bool rounded ) auto* box = new Box( parent ); box->setBorderWidth( 20 ); QskGradient gradient1( Qt::Vertical, { { 0.0, Qt::blue }, - { 0.7, Qt::yellow }, + { 0.9, Qt::yellow }, { 1.0, Qt::darkRed } } ); QskGradient gradient2( Qt::Vertical, { { 0.0, Qt::black }, { 0.3, Qt::white }, @@ -481,6 +481,7 @@ class TabView : public QskTabView #endif auto* tab5 = new QskLinearBox( Qt::Horizontal, 5 ); + // ### also add some filling: addColoredBorderRectangles1( tab5, false ); addColoredBorderRectangles2( tab5, false ); addColoredBorderRectangles3( tab5, false ); @@ -494,7 +495,7 @@ class TabView : public QskTabView addColoredBorderRectangles5( tab5, true ); addTab( tab5 ); - setCurrentIndex( count() - 2 ); + setCurrentIndex( count() - 1 ); } private: @@ -522,13 +523,16 @@ int main( int argc, char* argv[] ) // ### remove: QskWindow window; -#if 1 +#if 0 auto* tabView = new TabView(); window.addItem( tabView ); #else - auto* tab4 = new QskLinearBox( Qt::Horizontal, 5 ); - addTestRectangle( tab4 ); - window.addItem( tab4 ); + auto* tab5 = new QskLinearBox( Qt::Horizontal, 5 ); + tab5->setMargins( 20 ); + tab5->setSpacing( 20 ); + addColoredBorderRectangles1( tab5, false ); + addColoredBorderRectangles1( tab5, true ); + window.addItem( tab5 ); #endif window.resize( 600, 600 );