[vlmc-devel] commit: Setting Panel: Removing a buggy method that does the exact opposite of what it' s supposed to do. ( Hugo Beauzée-Luyssen?==?UTF-8?Q? )

git at videolan.org git at videolan.org
Sun Dec 5 21:29:15 CET 2010


vlmc | branch: master | Hugo Beauzée-Luyssen <beauze.h at gmail.com> | Sun Dec  5 21:52:32 2010 +0100| [448511530d68213efdc62dec9a8a7f9f6cab6690] | committer: Hugo Beauzée-Luyssen 

Setting Panel: Removing a buggy method that does the exact opposite of what it's supposed to do.

> http://git.videolan.org/gitweb.cgi/vlmc.git/?a=commit;h=448511530d68213efdc62dec9a8a7f9f6cab6690
---

 src/Gui/settings/Panel.cpp    |    7 -------
 src/Gui/settings/Panel.h      |    3 ---
 src/Gui/settings/Settings.cpp |    2 ++
 3 files changed, 2 insertions(+), 10 deletions(-)

diff --git a/src/Gui/settings/Panel.cpp b/src/Gui/settings/Panel.cpp
index b58faea..819741d 100644
--- a/src/Gui/settings/Panel.cpp
+++ b/src/Gui/settings/Panel.cpp
@@ -77,13 +77,6 @@ void    Panel::addButton( const char* name,
     m_layout->insertWidget( m_layout->count() - 1, button );
 }
 
-void    Panel::showEvent( QShowEvent *event )
-{
-    // Reset the selection when the dialog is shown.
-    if ( !event->spontaneous() && !m_buttons->buttons().isEmpty() )
-        m_buttons->buttons().first()->setChecked( true );
-}
-
 void
 Panel::retranslate()
 {
diff --git a/src/Gui/settings/Panel.h b/src/Gui/settings/Panel.h
index 9f77cbf..d8faa75 100644
--- a/src/Gui/settings/Panel.h
+++ b/src/Gui/settings/Panel.h
@@ -49,9 +49,6 @@ public:
     void    retranslate();
 
 private:
-    virtual void        showEvent( QShowEvent * );
-
-private:
     QVBoxLayout*                    m_layout;
     QButtonGroup*                   m_buttons;
     static const int                M_ICON_HEIGHT;
diff --git a/src/Gui/settings/Settings.cpp b/src/Gui/settings/Settings.cpp
index 77bfeaf..12d98a0 100644
--- a/src/Gui/settings/Settings.cpp
+++ b/src/Gui/settings/Settings.cpp
@@ -37,6 +37,8 @@
 #include <QScrollArea>
 #include <QStackedLayout>
 
+#include <QtDebug>
+
 Settings::Settings( SettingsManager::Type type, QWidget *parent ) :
     QDialog( parent ),
     m_type( type )



More information about the Vlmc-devel mailing list