summaryrefslogtreecommitdiffstats
path: root/examples/itemviews/chart/pieview.cpp
diff options
context:
space:
mode:
authorIan Walters <ian.walters@nokia.com>2009-04-29 02:59:02 (GMT)
committerIan Walters <ian.walters@nokia.com>2009-04-29 02:59:02 (GMT)
commit57a5fbad609b0b0d844d7d4ed16558bfbaf725fe (patch)
treea412ddc1c14e13eb808d0d487329c223c1ccbf6c /examples/itemviews/chart/pieview.cpp
parente69b60890feca37db16df2ec7616d9f58c78fa81 (diff)
parentcc50b86dba171f9d63cdfbc9044cafc2766b0b15 (diff)
downloadQt-57a5fbad609b0b0d844d7d4ed16558bfbaf725fe.zip
Qt-57a5fbad609b0b0d844d7d4ed16558bfbaf725fe.tar.gz
Qt-57a5fbad609b0b0d844d7d4ed16558bfbaf725fe.tar.bz2
Merge branch 'kinetic-declarativeui' of git@scm.dev.nokia.troll.no:qt/kinetic into kinetic-declarativeui
Diffstat (limited to 'examples/itemviews/chart/pieview.cpp')
-rw-r--r--examples/itemviews/chart/pieview.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/itemviews/chart/pieview.cpp b/examples/itemviews/chart/pieview.cpp
index 6b62f25..48f4073 100644
--- a/examples/itemviews/chart/pieview.cpp
+++ b/examples/itemviews/chart/pieview.cpp
@@ -254,7 +254,7 @@ void PieView::mousePressEvent(QMouseEvent *event)
QAbstractItemView::mousePressEvent(event);
origin = event->pos();
if (!rubberBand)
- rubberBand = new QRubberBand(QRubberBand::Rectangle, this);
+ rubberBand = new QRubberBand(QRubberBand::Rectangle, viewport());
rubberBand->setGeometry(QRect(origin, QSize()));
rubberBand->show();
}