summaryrefslogtreecommitdiffstats
path: root/src/declarative/fx/qfxrect.cpp
diff options
context:
space:
mode:
authorThomas Hartmann <Thomas.Hartmann@nokia.com>2009-06-09 08:42:46 (GMT)
committerThomas Hartmann <Thomas.Hartmann@nokia.com>2009-06-09 08:46:03 (GMT)
commit29496148abe8506fbf50c99e9a210095c5115a14 (patch)
tree32f4b5d08bc99afc302087a376c0020f70c07fe9 /src/declarative/fx/qfxrect.cpp
parent1ef0d84c8e5d706e60e487fc801f90bbf5fddaa6 (diff)
downloadQt-29496148abe8506fbf50c99e9a210095c5115a14.zip
Qt-29496148abe8506fbf50c99e9a210095c5115a14.tar.gz
Qt-29496148abe8506fbf50c99e9a210095c5115a14.tar.bz2
Compile fix for !QFX_RENDER_OPENGL
Some QFX_RENDER_OPENGL guards were missing and getPen had to be replaced with d->pen in some places Reviewed-by: Kai Koehne
Diffstat (limited to 'src/declarative/fx/qfxrect.cpp')
-rw-r--r--src/declarative/fx/qfxrect.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/declarative/fx/qfxrect.cpp b/src/declarative/fx/qfxrect.cpp
index eacc85e..f55357f 100644
--- a/src/declarative/fx/qfxrect.cpp
+++ b/src/declarative/fx/qfxrect.cpp
@@ -497,7 +497,7 @@ void QFxRect::generateRoundedRect()
QPainter p(&(d->rectImage));
p.setRenderHint(QPainter::Antialiasing);
if (d->pen && d->pen->isValid()) {
- QPen pn(QColor(getPen()->color()), getPen()->width());
+ QPen pn(QColor(d->pen->color()), d->pen->width());
p.setPen(pn);
} else {
p.setPen(Qt::NoPen);
@@ -517,7 +517,7 @@ void QFxRect::generateBorderedRect()
QPainter p(&(d->rectImage));
p.setRenderHint(QPainter::Antialiasing);
if (d->pen && d->pen->isValid()) {
- QPen pn(QColor(getPen()->color()), getPen()->width());
+ QPen pn(QColor(d->pen->color()), d->pen->width());
p.setPen(pn);
} else {
p.setPen(Qt::NoPen);
@@ -604,7 +604,7 @@ void QFxRect::drawRect(QPainter &p)
QPainter::RenderHints oldHints = p.renderHints();
p.setRenderHint(QPainter::Antialiasing);
if (d->pen && d->pen->isValid()) {
- QPen pn(QColor(getPen()->color()), getPen()->width());
+ QPen pn(QColor(d->pen->color()), d->pen->width());
p.setPen(pn);
} else {
p.setPen(Qt::NoPen);