diff options
author | Bjørn Erik Nilsen <bjorn.nilsen@nokia.com> | 2009-08-19 14:23:16 (GMT) |
---|---|---|
committer | Bjørn Erik Nilsen <bjorn.nilsen@nokia.com> | 2009-08-19 14:23:16 (GMT) |
commit | eb277fd3e9e1b1a3f2fdb0ae18f92f608c584816 (patch) | |
tree | 32c92e3875068bef6879f316d714135861c84593 /src/gui/effects/qgraphicseffect.h | |
parent | 1c9a28ea64cc53e61a64644dc5a4ff121b475bc5 (diff) | |
download | Qt-eb277fd3e9e1b1a3f2fdb0ae18f92f608c584816.zip Qt-eb277fd3e9e1b1a3f2fdb0ae18f92f608c584816.tar.gz Qt-eb277fd3e9e1b1a3f2fdb0ae18f92f608c584816.tar.bz2 |
Add Q_PROPERTY to all qgraphics effects.
Diffstat (limited to 'src/gui/effects/qgraphicseffect.h')
-rw-r--r-- | src/gui/effects/qgraphicseffect.h | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/src/gui/effects/qgraphicseffect.h b/src/gui/effects/qgraphicseffect.h index 19399d3..0692cda 100644 --- a/src/gui/effects/qgraphicseffect.h +++ b/src/gui/effects/qgraphicseffect.h @@ -95,7 +95,7 @@ class Q_GUI_EXPORT QGraphicsEffect : public QObject { Q_OBJECT Q_FLAGS(ChangeFlags) - Q_PROPERTY(bool enabled READ isEnabled WRITE setEnabled) + Q_PROPERTY(bool enabled READ isEnabled WRITE setEnabled NOTIFY enabledChanged) public: enum ChangeFlag { SourceAttached = 0x1, @@ -116,6 +116,9 @@ public: bool isEnabled() const; +Q_SIGNALS: + void enabledChanged(bool enabled); + public Q_SLOTS: void setEnabled(bool enable); // ### add update() slot @@ -153,6 +156,7 @@ private: class QGraphicsColorizeEffectPrivate; class Q_GUI_EXPORT QGraphicsColorizeEffect: public QGraphicsEffect { Q_OBJECT + Q_PROPERTY(QColor color READ color WRITE setColor NOTIFY colorChanged) public: QGraphicsColorizeEffect(); ~QGraphicsColorizeEffect(); @@ -160,6 +164,9 @@ public: QColor color() const; void setColor(const QColor &c); +Q_SIGNALS: + void colorChanged(const QColor &color); + protected: void draw(QPainter *painter, QGraphicsEffectSource *source); @@ -171,6 +178,7 @@ private: class QGraphicsPixelizeEffectPrivate; class Q_GUI_EXPORT QGraphicsPixelizeEffect: public QGraphicsEffect { Q_OBJECT + Q_PROPERTY(int pixelSize READ pixelSize WRITE setPixelSize NOTIFY pixelSizeChanged) public: QGraphicsPixelizeEffect(); ~QGraphicsPixelizeEffect(); @@ -178,6 +186,9 @@ public: int pixelSize() const; void setPixelSize(int pixelSize); +Q_SIGNALS: + void pixelSizeChanged(int pixelSize); + protected: void draw(QPainter *painter, QGraphicsEffectSource *source); @@ -189,6 +200,7 @@ private: class QGraphicsBlurEffectPrivate; class Q_GUI_EXPORT QGraphicsBlurEffect: public QGraphicsEffect { Q_OBJECT + Q_PROPERTY(int blurRadius READ blurRadius WRITE setBlurRadius NOTIFY blurRadiusChanged) public: QGraphicsBlurEffect(); ~QGraphicsBlurEffect(); @@ -196,6 +208,9 @@ public: int blurRadius() const; void setBlurRadius(int blurRadius); +Q_SIGNALS: + void blurRadiusChanged(int blurRadius); + protected: QRectF boundingRectFor(const QRectF &rect) const; void draw(QPainter *painter, QGraphicsEffectSource *source); @@ -208,6 +223,9 @@ private: class QGraphicsShadowEffectPrivate; class Q_GUI_EXPORT QGraphicsShadowEffect: public QGraphicsEffect { Q_OBJECT + Q_PROPERTY(QPointF shadowOffset READ shadowOffset WRITE setShadowOffset NOTIFY shadowOffsetChanged) + Q_PROPERTY(int blurRadius READ blurRadius WRITE setBlurRadius NOTIFY blurRadiusChanged) + Q_PROPERTY(int opacity READ opacity WRITE setOpacity NOTIFY opacityChanged) public: QGraphicsShadowEffect(); ~QGraphicsShadowEffect(); @@ -225,6 +243,11 @@ public: qreal opacity() const; void setOpacity(qreal opacity); +Q_SIGNALS: + void shadowOffsetChanged(const QPointF &offset); + void blurRadiusChanged(int blurRadius); + void opacityChanged(int opacity); + protected: QRectF boundingRectFor(const QRectF &rect) const; void draw(QPainter *painter, QGraphicsEffectSource *source); |