From 3300d070d22a5f107ba0167fb957f472d1478c6d Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Kempf Date: Sun, 18 Jan 2009 19:03:25 +0100 Subject: [PATCH] Qt: toolbars, change regroupments of unsplittable buttons as QFrame I will need that to clarify the Toolbar editor. --- 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 a78510e8fd..2a8dc814ab 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 2726de8725..086843f5b1 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 38bb76f386..d6c622c0c2 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 +#include #include #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; -- 2.39.2