From 3a11db5d90e1c79d6e8fe47afda3b96cd7d8406b Mon Sep 17 00:00:00 2001 From: Christian Kamm Date: Fri, 26 Feb 2010 11:11:43 +0100 Subject: Move the style related code from the menu buttons into the main widget. --- library/components/batterybutton.cpp | 1 - library/components/powerbutton.cpp | 1 - library/remotecontrolwidget.cpp | 1 + 3 files changed, 1 insertion(+), 2 deletions(-) diff --git a/library/components/batterybutton.cpp b/library/components/batterybutton.cpp index 1c7ebb3..acdef19 100644 --- a/library/components/batterybutton.cpp +++ b/library/components/batterybutton.cpp @@ -9,7 +9,6 @@ BatteryButton::BatteryButton(QWidget *parent) { setPopupMode(QToolButton::InstantPopup); setDisplayedBatteryLevel(BatteryNormal); - setProperty("noArrow", true); QMenu *menu = new QMenu(this); QAction *action = 0; diff --git a/library/components/powerbutton.cpp b/library/components/powerbutton.cpp index 6c2b716..3bec089 100644 --- a/library/components/powerbutton.cpp +++ b/library/components/powerbutton.cpp @@ -8,7 +8,6 @@ PowerButton::PowerButton(QWidget *parent) { setPopupMode(QToolButton::InstantPopup); setDisplayedState(BatteryPower); - setProperty("noArrow", true); QMenu *menu = new QMenu(this); QAction *action = 0; diff --git a/library/remotecontrolwidget.cpp b/library/remotecontrolwidget.cpp index 3f6a308..f731d46 100644 --- a/library/remotecontrolwidget.cpp +++ b/library/remotecontrolwidget.cpp @@ -115,6 +115,7 @@ void RemoteControlWidget::addToolBoxPage(const QString &title, const QListsetStyle(mManhattanStyle); + button->setProperty("noArrow", true); mMenuLayout->addWidget(button); } -- cgit v1.2.3