[vlc-devel] commit: Qt: toolbars, change regroupments of unsplittable buttons as QFrame ( Jean-Baptiste Kempf )

git version control git at videolan.org
Mon Jan 19 00:26:10 CET 2009


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Sun Jan 18 19:03:25 2009 +0100| [3300d070d22a5f107ba0167fb957f472d1478c6d] | committer: Jean-Baptiste Kempf 

Qt: toolbars, change regroupments of unsplittable buttons as QFrame

I will need that to clarify the Toolbar editor.

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

 modules/gui/qt4/components/controller.cpp        |    6 +++---
 modules/gui/qt4/components/controller.hpp        |    4 ++--
 modules/gui/qt4/components/controller_widget.hpp |    3 ++-
 3 files changed, 7 insertions(+), 6 deletions(-)

diff --git a/modules/gui/qt4/components/controller.cpp b/modules/gui/qt4/components/controller.cpp
index a78510e..2a8dc81 100644
--- a/modules/gui/qt4/components/controller.cpp
+++ b/modules/gui/qt4/components/controller.cpp
@@ -417,10 +417,10 @@ QWidget *AbstractController::createWidget( buttonType_e button, int options )
     return widget;
 }
 
-QWidget *AbstractController::discFrame()
+QFrame *AbstractController::discFrame()
 {
     /** Disc and Menus handling */
-    QWidget *discFrame = new QWidget( this );
+    QFrame *discFrame = new QFrame( this );
 
     QHBoxLayout *discLayout = new QHBoxLayout( discFrame );
     discLayout->setSpacing( 0 ); discLayout->setMargin( 0 );
@@ -459,7 +459,7 @@ QWidget *AbstractController::discFrame()
     return discFrame;
 }
 
-QWidget *AbstractController::telexFrame()
+QFrame *AbstractController::telexFrame()
 {
     /**
      * Telextext QFrame
diff --git a/modules/gui/qt4/components/controller.hpp b/modules/gui/qt4/components/controller.hpp
index 2726de8..086843f 100644
--- a/modules/gui/qt4/components/controller.hpp
+++ b/modules/gui/qt4/components/controller.hpp
@@ -161,8 +161,8 @@ protected:
     QWidget *createWidget( buttonType_e, int options = WIDGET_NORMAL );
 private:
     static void setupButton( QAbstractButton * );
-    QWidget *discFrame();
-    QWidget *telexFrame();
+    QFrame *discFrame();
+    QFrame *telexFrame();
 
 protected slots:
     virtual void doAction( int );
diff --git a/modules/gui/qt4/components/controller_widget.hpp b/modules/gui/qt4/components/controller_widget.hpp
index 38bb76f..d6c622c 100644
--- a/modules/gui/qt4/components/controller_widget.hpp
+++ b/modules/gui/qt4/components/controller_widget.hpp
@@ -31,6 +31,7 @@
 #include "qt4.hpp"
 
 #include <QWidget>
+#include <QFrame>
 #include <QToolButton>
 
 #define I_PLAY_TOOLTIP N_("Play\nIf the playlist is empty, open a media")
@@ -61,7 +62,7 @@ private slots:
     void setIcons( bool, bool );
 };
 
-class TeletextController : public QWidget
+class TeletextController : public QFrame
 {
     Q_OBJECT
     friend class AbstractController;




More information about the vlc-devel mailing list