[vlc-commits] Qt: preferences: use QSplitter for advanced layout base

Francois Cartegnie git at videolan.org
Thu Mar 22 15:43:54 CET 2012


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Fri Mar 16 20:35:44 2012 +0100| [50aa2b941ced12580430a28aea66f411dcb87099] | committer: Francois Cartegnie

Qt: preferences: use QSplitter for advanced layout base

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

 modules/gui/qt4/dialogs/preferences.cpp |    3 ++-
 modules/gui/qt4/dialogs/preferences.hpp |    4 +++-
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/modules/gui/qt4/dialogs/preferences.cpp b/modules/gui/qt4/dialogs/preferences.cpp
index d4e9650..1a163dd 100644
--- a/modules/gui/qt4/dialogs/preferences.cpp
+++ b/modules/gui/qt4/dialogs/preferences.cpp
@@ -42,6 +42,7 @@
 #include <QMessageBox>
 #include <QDialogButtonBox>
 #include <QStackedWidget>
+#include <QSplitter>
 
 PrefsDialog::PrefsDialog( QWidget *parent, intf_thread_t *_p_intf )
             : QVLCDialog( parent, _p_intf )
@@ -97,7 +98,7 @@ PrefsDialog::PrefsDialog( QWidget *parent, intf_thread_t *_p_intf )
     simple_split_widget = new QWidget();
     simple_split_widget->setLayout( new QHBoxLayout );
 
-    advanced_split_widget = new QWidget();
+    advanced_split_widget = new QSplitter();
     advanced_split_widget->setLayout( new QHBoxLayout );
 
     stack = new QStackedWidget();
diff --git a/modules/gui/qt4/dialogs/preferences.hpp b/modules/gui/qt4/dialogs/preferences.hpp
index cb8b3db..9273241 100644
--- a/modules/gui/qt4/dialogs/preferences.hpp
+++ b/modules/gui/qt4/dialogs/preferences.hpp
@@ -40,6 +40,7 @@ class QCheckBox;
 class QLabel;
 class SearchLineEdit;
 class QStackedWidget;
+class QSplitter;
 
 class PrefsDialog : public QVLCDialog
 {
@@ -56,7 +57,8 @@ private:
     enum { SIMPLE, ADVANCED };
     QStackedWidget *stack;
 
-    QWidget *simple_split_widget, *advanced_split_widget;
+    QWidget *simple_split_widget;
+    QSplitter *advanced_split_widget;
 
     QStackedWidget *advanced_panels_stack;
     QStackedWidget *simple_panels_stack;



More information about the vlc-commits mailing list