diff options
author | Pierre Rossi <pierre.rossi@nokia.com> | 2009-04-24 17:54:44 (GMT) |
---|---|---|
committer | Pierre Rossi <pierre.rossi@nokia.com> | 2009-04-24 18:14:58 (GMT) |
commit | dae9a234412d09c1af67a34262637bdc6e8c0845 (patch) | |
tree | 536c5c04c6cb3cbd22cb1e6fddf9f566ccb74904 /examples | |
parent | be70a2de000e1bbbd5405247b475531695164a62 (diff) | |
download | Qt-dae9a234412d09c1af67a34262637bdc6e8c0845.zip Qt-dae9a234412d09c1af67a34262637bdc6e8c0845.tar.gz Qt-dae9a234412d09c1af67a34262637bdc6e8c0845.tar.bz2 |
fixed minor issue with the piechart demo
The rubberband was not set on the viewport, leading to an offset when
adding margins.
Task-number: 251892
Reviewed-by: Alexis
Diffstat (limited to 'examples')
-rw-r--r-- | examples/itemviews/chart/pieview.cpp | 2 |
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(); } |