[vlc-devel] commit: Qt: Fix native/non-native state of button. (Jean-Baptiste Kempf )

git version control git at videolan.org
Wed Jan 21 23:37:34 CET 2009


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Wed Jan 21 23:36:46 2009 +0100| [44464f278ece7f08f224794bf45114f8ffdf3d5d] | committer: Jean-Baptiste Kempf 

Qt: Fix native/non-native state of button.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=44464f278ece7f08f224794bf45114f8ffdf3d5d
---

 modules/gui/qt4/dialogs/toolbar.cpp |    1 -
 modules/gui/qt4/dialogs/toolbar.hpp |    2 +-
 2 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/modules/gui/qt4/dialogs/toolbar.cpp b/modules/gui/qt4/dialogs/toolbar.cpp
index f585542..d8554c4 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 1fb3560..31da994 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;




More information about the vlc-devel mailing list