diff options
author | Owen Williams <owilliams@mixxx.org> | 2014-04-21 07:37:42 -0400 |
---|---|---|
committer | Owen Williams <owilliams@mixxx.org> | 2014-04-21 07:37:42 -0400 |
commit | 068782beb007ef17f8843189e2b7c88ebf559adc (patch) | |
tree | 170cdcf62b440112cb3faadc0e1c346d6c219e3b /src/widget/wpushbutton.h | |
parent | 3d35a1d116390c4780e80428f1aec5fe1bee2657 (diff) |
Move the unpolish/polish calls outside paint, because they call paint.
Diffstat (limited to 'src/widget/wpushbutton.h')
-rw-r--r-- | src/widget/wpushbutton.h | 6 |
1 files changed, 1 insertions, 5 deletions
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<double>(val)); - } - void setup(QDomNode node, const SkinContext& context); // Sets the number of states associated with this button, and removes |