From 44464f278ece7f08f224794bf45114f8ffdf3d5d Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Kempf Date: Wed, 21 Jan 2009 23:36:46 +0100 Subject: [PATCH] Qt: Fix native/non-native state of button. --- modules/gui/qt4/dialogs/toolbar.cpp | 1 - modules/gui/qt4/dialogs/toolbar.hpp | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/gui/qt4/dialogs/toolbar.cpp b/modules/gui/qt4/dialogs/toolbar.cpp index f585542712..d8554c48bb 100644 --- a/modules/gui/qt4/dialogs/toolbar.cpp +++ b/modules/gui/qt4/dialogs/toolbar.cpp @@ -58,7 +58,6 @@ ToolbarEditDialog::ToolbarEditDialog( intf_thread_t *_p_intf) flatBox = new QCheckBox( qtr( "Flat Button" ) ); bigBox = new QCheckBox( qtr( "Big Button" ) ); shinyBox = new QCheckBox( qtr( "Native Slider" ) ); - shinyBox->setChecked( true ); boxLayout->addWidget( new WidgetListing( p_intf, this ), 0, 0, 1, -1); boxLayout->addWidget( flatBox, 1, 0 ); diff --git a/modules/gui/qt4/dialogs/toolbar.hpp b/modules/gui/qt4/dialogs/toolbar.hpp index 1fb3560ea4..31da994f97 100644 --- a/modules/gui/qt4/dialogs/toolbar.hpp +++ b/modules/gui/qt4/dialogs/toolbar.hpp @@ -60,7 +60,7 @@ public: virtual ~ToolbarEditDialog(); int getOptions() { return flatBox->isChecked() * WIDGET_FLAT + bigBox->isChecked() * WIDGET_BIG + - shinyBox->isChecked() * WIDGET_SHINY; } + !shinyBox->isChecked() * WIDGET_SHINY; } private: ToolbarEditDialog( intf_thread_t * ); static ToolbarEditDialog *instance; -- 2.39.2