diff options
author | Bjørn Erik Nilsen <bjorn.nilsen@nokia.com> | 2009-08-20 09:55:23 (GMT) |
---|---|---|
committer | Bjørn Erik Nilsen <bjorn.nilsen@nokia.com> | 2009-08-20 09:55:23 (GMT) |
commit | 39f5298ef2c0424e7b4916d8d1de1d46e534daee (patch) | |
tree | c2a6319759a68f27131945e69512529c799e25af /src/gui/effects/qgraphicseffect.h | |
parent | 457b34bbac3b9e7f9154ac2d729c9f7e8cdee8b2 (diff) | |
download | Qt-39f5298ef2c0424e7b4916d8d1de1d46e534daee.zip Qt-39f5298ef2c0424e7b4916d8d1de1d46e534daee.tar.gz Qt-39f5298ef2c0424e7b4916d8d1de1d46e534daee.tar.bz2 |
Add "QObject *parent = 0" to all graphics effect constructors.
Diffstat (limited to 'src/gui/effects/qgraphicseffect.h')
-rw-r--r-- | src/gui/effects/qgraphicseffect.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/gui/effects/qgraphicseffect.h b/src/gui/effects/qgraphicseffect.h index 8890a48..d5ec19e 100644 --- a/src/gui/effects/qgraphicseffect.h +++ b/src/gui/effects/qgraphicseffect.h @@ -103,7 +103,7 @@ public: }; Q_DECLARE_FLAGS(ChangeFlags, ChangeFlag); - QGraphicsEffect(); + QGraphicsEffect(QObject *parent = 0); virtual ~QGraphicsEffect(); // ### make protected? @@ -122,7 +122,7 @@ Q_SIGNALS: void enabledChanged(bool enabled); protected: - QGraphicsEffect(QGraphicsEffectPrivate &d); + QGraphicsEffect(QGraphicsEffectPrivate &d, QObject *parent = 0); virtual void draw(QPainter *painter, QGraphicsEffectSource *source) = 0; virtual void sourceChanged(ChangeFlags flags); void updateBoundingRect(); @@ -140,7 +140,7 @@ class Q_GUI_EXPORT QGraphicsGrayscaleEffect: public QGraphicsEffect { Q_OBJECT public: - QGraphicsGrayscaleEffect(); + QGraphicsGrayscaleEffect(QObject *parent = 0); ~QGraphicsGrayscaleEffect(); protected: @@ -157,7 +157,7 @@ class Q_GUI_EXPORT QGraphicsColorizeEffect: public QGraphicsEffect Q_OBJECT Q_PROPERTY(QColor color READ color WRITE setColor NOTIFY colorChanged) public: - QGraphicsColorizeEffect(); + QGraphicsColorizeEffect(QObject *parent = 0); ~QGraphicsColorizeEffect(); QColor color() const; @@ -182,7 +182,7 @@ class Q_GUI_EXPORT QGraphicsPixelizeEffect: public QGraphicsEffect Q_OBJECT Q_PROPERTY(int pixelSize READ pixelSize WRITE setPixelSize NOTIFY pixelSizeChanged) public: - QGraphicsPixelizeEffect(); + QGraphicsPixelizeEffect(QObject *parent = 0); ~QGraphicsPixelizeEffect(); int pixelSize() const; @@ -207,7 +207,7 @@ class Q_GUI_EXPORT QGraphicsBlurEffect: public QGraphicsEffect Q_OBJECT Q_PROPERTY(int blurRadius READ blurRadius WRITE setBlurRadius NOTIFY blurRadiusChanged) public: - QGraphicsBlurEffect(); + QGraphicsBlurEffect(QObject *parent = 0); ~QGraphicsBlurEffect(); int blurRadius() const; @@ -235,7 +235,7 @@ class Q_GUI_EXPORT QGraphicsShadowEffect: public QGraphicsEffect Q_PROPERTY(int blurRadius READ blurRadius WRITE setBlurRadius NOTIFY blurRadiusChanged) Q_PROPERTY(int opacity READ opacity WRITE setOpacity NOTIFY opacityChanged) public: - QGraphicsShadowEffect(); + QGraphicsShadowEffect(QObject *parent = 0); ~QGraphicsShadowEffect(); QPointF shadowOffset() const; |