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 | |
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')
-rw-r--r-- | src/gui/effects/qgraphicseffect.cpp | 28 | ||||
-rw-r--r-- | src/gui/effects/qgraphicseffect.h | 14 |
2 files changed, 21 insertions, 21 deletions
diff --git a/src/gui/effects/qgraphicseffect.cpp b/src/gui/effects/qgraphicseffect.cpp index 1d604b5..a1845a6 100644 --- a/src/gui/effects/qgraphicseffect.cpp +++ b/src/gui/effects/qgraphicseffect.cpp @@ -202,8 +202,8 @@ QPixmap QGraphicsEffectSource::pixmap(Qt::CoordinateSystem system, QPoint *offse /*! Constructs a new QGraphicsEffect instance. */ -QGraphicsEffect::QGraphicsEffect() - : QObject(*new QGraphicsEffectPrivate, 0) +QGraphicsEffect::QGraphicsEffect(QObject *parent) + : QObject(*new QGraphicsEffectPrivate, parent) { // ### parent? } @@ -211,8 +211,8 @@ QGraphicsEffect::QGraphicsEffect() /*! \internal */ -QGraphicsEffect::QGraphicsEffect(QGraphicsEffectPrivate &dd) - : QObject(dd, 0) +QGraphicsEffect::QGraphicsEffect(QGraphicsEffectPrivate &dd, QObject *parent) + : QObject(dd, parent) { } @@ -321,8 +321,8 @@ void QGraphicsEffect::sourceChanged(ChangeFlags flags) Q_UNUSED(flags); } -QGraphicsGrayscaleEffect::QGraphicsGrayscaleEffect() - : QGraphicsEffect(*new QGraphicsGrayscaleEffectPrivate) +QGraphicsGrayscaleEffect::QGraphicsGrayscaleEffect(QObject *parent) + : QGraphicsEffect(*new QGraphicsGrayscaleEffectPrivate, parent) { } @@ -350,8 +350,8 @@ void QGraphicsGrayscaleEffect::draw(QPainter *painter, QGraphicsEffectSource *so } -QGraphicsColorizeEffect::QGraphicsColorizeEffect() - : QGraphicsEffect(*new QGraphicsColorizeEffectPrivate) +QGraphicsColorizeEffect::QGraphicsColorizeEffect(QObject *parent) + : QGraphicsEffect(*new QGraphicsColorizeEffectPrivate, parent) {} QGraphicsColorizeEffect::~QGraphicsColorizeEffect() @@ -392,8 +392,8 @@ void QGraphicsColorizeEffect::draw(QPainter *painter, QGraphicsEffectSource *sou painter->setWorldTransform(restoreTransform); } -QGraphicsPixelizeEffect::QGraphicsPixelizeEffect() - : QGraphicsEffect(*new QGraphicsPixelizeEffectPrivate) +QGraphicsPixelizeEffect::QGraphicsPixelizeEffect(QObject *parent) + : QGraphicsEffect(*new QGraphicsPixelizeEffectPrivate, parent) { } @@ -468,8 +468,8 @@ void QGraphicsPixelizeEffect::draw(QPainter *painter, QGraphicsEffectSource *sou painter->setWorldTransform(restoreTransform); } -QGraphicsBlurEffect::QGraphicsBlurEffect() - : QGraphicsEffect(*new QGraphicsBlurEffectPrivate) +QGraphicsBlurEffect::QGraphicsBlurEffect(QObject *parent) + : QGraphicsEffect(*new QGraphicsBlurEffectPrivate, parent) { } @@ -589,8 +589,8 @@ void QGraphicsBlurEffect::draw(QPainter *painter, QGraphicsEffectSource *source) painter->setWorldTransform(restoreTransform); } -QGraphicsShadowEffect::QGraphicsShadowEffect() - : QGraphicsEffect(*new QGraphicsShadowEffectPrivate) +QGraphicsShadowEffect::QGraphicsShadowEffect(QObject *parent) + : QGraphicsEffect(*new QGraphicsShadowEffectPrivate, parent) { } 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; |