diff options
author | Christian Kamm <christian.d.kamm@nokia.com> | 2010-02-26 11:11:43 +0100 |
---|---|---|
committer | Christian Kamm <christian.d.kamm@nokia.com> | 2010-02-26 11:11:43 +0100 |
commit | 3a11db5d90e1c79d6e8fe47afda3b96cd7d8406b (patch) | |
tree | eea14eb2455dd41198fa4f894e4b450c9088666c | |
parent | 1b158abe4f9c696f77cc8530691297536ec48fb7 (diff) |
Move the style related code from the menu buttons into the main widget.
-rw-r--r-- | library/components/batterybutton.cpp | 1 | ||||
-rw-r--r-- | library/components/powerbutton.cpp | 1 | ||||
-rw-r--r-- | library/remotecontrolwidget.cpp | 1 |
3 files changed, 1 insertions, 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 QList<Optio void RemoteControlWidget::addMenuButton(QToolButton *button) { button->setStyle(mManhattanStyle); + button->setProperty("noArrow", true); mMenuLayout->addWidget(button); } |