From c053443aecadc8467135505f984ee8a9fc0fe2a9 Mon Sep 17 00:00:00 2001 From: RJ Ryan Date: Sat, 22 Nov 2014 02:30:43 -0500 Subject: Eliminate massive code duplication between WPushButton and WEffectPushButton. --- src/widget/wpushbutton.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/widget/wpushbutton.h') 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); -- cgit v1.2.3