diff options
author | Michael Brasser <michael.brasser@nokia.com> | 2009-07-31 03:59:29 (GMT) |
---|---|---|
committer | Michael Brasser <michael.brasser@nokia.com> | 2009-07-31 03:59:29 (GMT) |
commit | fa75cbdd3e1ae7b7d10d582498ae7e1d535f82ec (patch) | |
tree | 71006eb04d2c55bfaa13797f01df81290ae54aa1 /src/declarative/fx/qfxrect.cpp | |
parent | 5c9f8288cf642a51bdce46f2833b37e4f94d43d9 (diff) | |
download | Qt-fa75cbdd3e1ae7b7d10d582498ae7e1d535f82ec.zip Qt-fa75cbdd3e1ae7b7d10d582498ae7e1d535f82ec.tar.gz Qt-fa75cbdd3e1ae7b7d10d582498ae7e1d535f82ec.tar.bz2 |
Remove paintContents.
Diffstat (limited to 'src/declarative/fx/qfxrect.cpp')
-rw-r--r-- | src/declarative/fx/qfxrect.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/declarative/fx/qfxrect.cpp b/src/declarative/fx/qfxrect.cpp index 955eb61..0722d26 100644 --- a/src/declarative/fx/qfxrect.cpp +++ b/src/declarative/fx/qfxrect.cpp @@ -471,14 +471,14 @@ void QFxRect::generateBorderedRect() } } -void QFxRect::paintContents(QPainter &p) +void QFxRect::paint(QPainter *p, const QStyleOptionGraphicsItem *, QWidget *) { Q_D(QFxRect); if (d->radius > 0 || (d->pen && d->pen->isValid()) || (d->gradient && d->gradient->gradient()) ) - drawRect(p); + drawRect(*p); else - p.fillRect(QRect(0, 0, width(), height()), d->getColor()); + p->fillRect(QRect(0, 0, width(), height()), d->getColor()); } void QFxRect::drawRect(QPainter &p) |