diff options
author | Christian Kamm <christian.d.kamm@nokia.com> | 2009-09-30 13:07:29 (GMT) |
---|---|---|
committer | Christian Kamm <christian.d.kamm@nokia.com> | 2009-09-30 13:07:29 (GMT) |
commit | 30ad1d54ba394d54bf7996fac5a11af1d75809cb (patch) | |
tree | 22ace79de634a370384c4c6787b37dea10da2377 /src | |
parent | 78ff58e9dd073dd4182d6ddcb2667ce6dece018e (diff) | |
download | Qt-30ad1d54ba394d54bf7996fac5a11af1d75809cb.zip Qt-30ad1d54ba394d54bf7996fac5a11af1d75809cb.tar.gz Qt-30ad1d54ba394d54bf7996fac5a11af1d75809cb.tar.bz2 |
Set sceneRect to size of root item instead of size of view.
This changes nothing when contentResizable is set and allows scroll
bars to be used when it's false and the view size is smaller than the
root item's size.
Reviewed-by: owolff
Diffstat (limited to 'src')
-rw-r--r-- | src/declarative/util/qmlview.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/declarative/util/qmlview.cpp b/src/declarative/util/qmlview.cpp index 805612e..98642e9 100644 --- a/src/declarative/util/qmlview.cpp +++ b/src/declarative/util/qmlview.cpp @@ -538,7 +538,7 @@ void QmlView::resizeEvent(QResizeEvent *e) d->root->setWidth(width()); d->root->setHeight(height()); } - setSceneRect(rect()); + setSceneRect(QRectF(0, 0, d->root->width(), d->root->height())); QGraphicsView::resizeEvent(e); } |