summaryrefslogtreecommitdiffstats
path: root/examples/paintitem/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/paintitem/main.cpp')
-rw-r--r--examples/paintitem/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/paintitem/main.cpp b/examples/paintitem/main.cpp
index 17ccd54..a2ef410 100644
--- a/examples/paintitem/main.cpp
+++ b/examples/paintitem/main.cpp
@@ -51,7 +51,7 @@ class MyPaintItem : public QxPaintItem
public:
virtual void paint(QPainter *p)
{
- QRectF rect(x(), y(), width(), height());
+ QRectF rect(0, 0, width(), height());
rect.adjust(10, 10, -10, -10);
p->setPen(QPen(Qt::black, 20));
p->setBrush(Qt::yellow);