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 17:54:44 (GMT) |
commit | 8b5a400581b9c037d12a9f49e075b187edcb0b00 (patch) | |
tree | 560c3fc7a7ab2693bf0b0e4da02a705b501c4cd3 /examples/itemviews/chart | |
parent | ed21b9dafea192ddd39f1d2a4abcb54962d6dfb8 (diff) | |
download | Qt-8b5a400581b9c037d12a9f49e075b187edcb0b00.zip Qt-8b5a400581b9c037d12a9f49e075b187edcb0b00.tar.gz Qt-8b5a400581b9c037d12a9f49e075b187edcb0b00.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/itemviews/chart')
-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(); } |