diff options
author | RJ Ryan <rryan@mixxx.org> | 2014-11-22 02:30:43 -0500 |
---|---|---|
committer | RJ Ryan <rryan@mixxx.org> | 2014-11-22 02:30:43 -0500 |
commit | c053443aecadc8467135505f984ee8a9fc0fe2a9 (patch) | |
tree | d904a5c911a5b9e56100b7db47ac610c96c0f947 /src/widget/wpushbutton.h | |
parent | 43fb6aed0f58626ef674345f5cc7d768a8a45efd (diff) |
Eliminate massive code duplication between WPushButton and WEffectPushButton.
Diffstat (limited to 'src/widget/wpushbutton.h')
-rw-r--r-- | src/widget/wpushbutton.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/widget/wpushbutton.h b/src/widget/wpushbutton.h index d69e851bbc..a7d40884d4 100644 --- a/src/widget/wpushbutton.h +++ b/src/widget/wpushbutton.h @@ -60,7 +60,7 @@ class WPushButton : public WWidget { return idx; } - void setup(QDomNode node, const SkinContext& context); + virtual void setup(QDomNode node, const SkinContext& context); // Sets the number of states associated with this button, and removes // associated pixmaps. @@ -70,7 +70,7 @@ class WPushButton : public WWidget { void displayValueChanged(int value); public slots: - void onConnectedControlChanged(double dParameter, double dValue); + virtual void onConnectedControlChanged(double dParameter, double dValue); protected: virtual void paintEvent(QPaintEvent*); @@ -79,7 +79,7 @@ class WPushButton : public WWidget { virtual void focusOutEvent(QFocusEvent* e); void fillDebugTooltip(QStringList* debug); - private: + protected: // Associates a pixmap of a given state of the button with the widget void setPixmap(int iState, bool bPressed, PixmapSource source); |