diff options
author | Bjørn Erik Nilsen <bjorn.nilsen@nokia.com> | 2009-08-19 14:28:46 (GMT) |
---|---|---|
committer | Bjørn Erik Nilsen <bjorn.nilsen@nokia.com> | 2009-08-19 14:28:46 (GMT) |
commit | 19ae511027367c890cda0df4dd1364a3219aafd3 (patch) | |
tree | 405e7a97047bfd4412aee03ff0fb137245e20f62 /src/gui | |
parent | eb277fd3e9e1b1a3f2fdb0ae18f92f608c584816 (diff) | |
download | Qt-19ae511027367c890cda0df4dd1364a3219aafd3.zip Qt-19ae511027367c890cda0df4dd1364a3219aafd3.tar.gz Qt-19ae511027367c890cda0df4dd1364a3219aafd3.tar.bz2 |
Make all graphics effect setters Q_SLOTS.
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/effects/qgraphicseffect.h | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/src/gui/effects/qgraphicseffect.h b/src/gui/effects/qgraphicseffect.h index 0692cda..74839cd 100644 --- a/src/gui/effects/qgraphicseffect.h +++ b/src/gui/effects/qgraphicseffect.h @@ -116,13 +116,13 @@ public: bool isEnabled() const; -Q_SIGNALS: - void enabledChanged(bool enabled); - public Q_SLOTS: void setEnabled(bool enable); // ### add update() slot +Q_SIGNALS: + void enabledChanged(bool enabled); + protected: QGraphicsEffect(QGraphicsEffectPrivate &d); virtual void draw(QPainter *painter, QGraphicsEffectSource *source) = 0; @@ -162,6 +162,8 @@ public: ~QGraphicsColorizeEffect(); QColor color() const; + +public Q_SLOTS: void setColor(const QColor &c); Q_SIGNALS: @@ -184,6 +186,8 @@ public: ~QGraphicsPixelizeEffect(); int pixelSize() const; + +public Q_SLOTS: void setPixelSize(int pixelSize); Q_SIGNALS: @@ -206,6 +210,8 @@ public: ~QGraphicsBlurEffect(); int blurRadius() const; + +public Q_SLOTS: void setBlurRadius(int blurRadius); Q_SIGNALS: @@ -231,16 +237,16 @@ public: ~QGraphicsShadowEffect(); QPointF shadowOffset() const; + int blurRadius() const; + qreal opacity() const; + +public Q_SLOTS: void setShadowOffset(const QPointF &ofs); inline void setShadowOffset(qreal dx, qreal dy) { setShadowOffset(QPointF(dx, dy)); } inline void setShadowOffset(qreal d) { setShadowOffset(QPointF(d, d)); } - - int blurRadius() const; void setBlurRadius(int blurRadius); - - qreal opacity() const; void setOpacity(qreal opacity); Q_SIGNALS: |