X-Git-Url: https://vcs.maemo.org/git/?a=blobdiff_plain;f=src%2Fgraphicselement.h;h=94d0143d2960b2b59ecbbad49d95c08d543936c4;hb=fdb9b8b2d07ef0695275ad353f40ff068779a82f;hp=ee9c4c253a06e3b2b47de5367b495b525d98052f;hpb=4d3806054964394823b034f85a14b82fc529ad68;p=jspeed diff --git a/src/graphicselement.h b/src/graphicselement.h index ee9c4c2..94d0143 100644 --- a/src/graphicselement.h +++ b/src/graphicselement.h @@ -27,7 +27,9 @@ class QByteArray; class QFont; class QGraphicsItem; class GraphicsScene; +class QGraphicsEffect; class Reader; +class Effect; class GraphicsElement { @@ -46,6 +48,9 @@ public: virtual void update() = 0; virtual QGraphicsItem* getElement() const = 0; QString const& getError() const; + bool setEffect(QString const& effect); + bool setEffectAttribute(QString const& name, QString const& value); + void applyEffect(); protected: int getAttribute(QString const& name, QString const& value, const AttributeDetails details[], int count, int& intValue); @@ -56,6 +61,7 @@ protected: private: Reader* reader_; QString error_; + Effect* effect_; QMap loadedFonts_; };