From 0d8ff350b00dc92f52c245da86e90d151b1721f2 Mon Sep 17 00:00:00 2001 From: RJ Ryan Date: Mon, 13 Jan 2014 00:15:28 -0500 Subject: Move effect widget setup out of LegacySkinParser and into the setup() method. --- src/widget/weffectchain.h | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'src/widget/weffectchain.h') diff --git a/src/widget/weffectchain.h b/src/widget/weffectchain.h index 8d5457758c..ffc0eb9ced 100644 --- a/src/widget/weffectchain.h +++ b/src/widget/weffectchain.h @@ -3,23 +3,30 @@ #include #include +#include #include "effects/effectchainslot.h" #include "widget/wlabel.h" +#include "skin/skincontext.h" + +class EffectsManager; class WEffectChain : public WLabel { Q_OBJECT public: - WEffectChain(QWidget* pParent=NULL); + WEffectChain(QWidget* pParent, EffectsManager* pEffectsManager); virtual ~WEffectChain(); - // Set the EffectChain that should be monitored by this WEffectChain - void setEffectChainSlot(EffectChainSlotPointer pEffectChainSlot); + void setup(QDomNode node, const SkinContext& context); private slots: void chainUpdated(); private: + // Set the EffectChain that should be monitored by this WEffectChain + void setEffectChainSlot(EffectChainSlotPointer pEffectChainSlot); + + EffectsManager* m_pEffectsManager; EffectChainSlotPointer m_pEffectChainSlot; }; -- cgit v1.2.3