diff options
author | Marko Valtanen <marko.valtanen@digia.com> | 2011-11-25 13:38:04 (GMT) |
---|---|---|
committer | Qt Commercial Integration <QtCommercial@digia.com> | 2012-01-31 10:24:41 (GMT) |
commit | c4ab78690b127e2a705d5a5386794229a67b496c (patch) | |
tree | 95e0cdd8d5f62f102fc8f873eddea2ff03a198fd /src/gui/widgets | |
parent | 7c0252a004d93e3b1ac19f367017a6bcf5baf265 (diff) | |
download | Qt-c4ab78690b127e2a705d5a5386794229a67b496c.zip Qt-c4ab78690b127e2a705d5a5386794229a67b496c.tar.gz Qt-c4ab78690b127e2a705d5a5386794229a67b496c.tar.bz2 |
QPrintPreviewDialog displays the second page instead of the first one when it is initially shown maximized.
Task-number: QTBUG-14517
Diffstat (limited to 'src/gui/widgets')
-rw-r--r-- | src/gui/widgets/qprintpreviewwidget.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/widgets/qprintpreviewwidget.cpp b/src/gui/widgets/qprintpreviewwidget.cpp index 47e67a4..1d496b4 100644 --- a/src/gui/widgets/qprintpreviewwidget.cpp +++ b/src/gui/widgets/qprintpreviewwidget.cpp @@ -318,7 +318,7 @@ void QPrintPreviewWidgetPrivate::init() graphicsView->setDragMode(QGraphicsView::ScrollHandDrag); graphicsView->setViewportUpdateMode(QGraphicsView::SmartViewportUpdate); QObject::connect(graphicsView->verticalScrollBar(), SIGNAL(valueChanged(int)), - q, SLOT(_q_updateCurrentPage())); + q, SLOT(_q_updateCurrentPage()), Qt::QueuedConnection); QObject::connect(graphicsView, SIGNAL(resized()), q, SLOT(_q_fit())); scene = new QGraphicsScene(graphicsView); |