From 068782beb007ef17f8843189e2b7c88ebf559adc Mon Sep 17 00:00:00 2001 From: Owen Williams Date: Mon, 21 Apr 2014 07:37:42 -0400 Subject: Move the unpolish/polish calls outside paint, because they call paint. --- src/widget/wpushbutton.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/widget/wpushbutton.h') diff --git a/src/widget/wpushbutton.h b/src/widget/wpushbutton.h index 3d7fb2938d..f318078f69 100644 --- a/src/widget/wpushbutton.h +++ b/src/widget/wpushbutton.h @@ -52,7 +52,7 @@ class WPushButton : public WWidget { // The declaration #MyButton[displayValue="0"] { } will define the style // when the widget is in state 0. This allows for effects like reversing // background and foreground colors to indicate enabled/disabled state. - Q_PROPERTY(int displayValue READ readDisplayValue WRITE setDisplayValue) + Q_PROPERTY(int displayValue READ readDisplayValue) int readDisplayValue() const { double value = getControlParameterDisplay(); @@ -60,10 +60,6 @@ class WPushButton : public WWidget { return idx; } - void setDisplayValue(int val) { - setControlParameter(static_cast(val)); - } - void setup(QDomNode node, const SkinContext& context); // Sets the number of states associated with this button, and removes -- cgit v1.2.3