From c4ab78690b127e2a705d5a5386794229a67b496c Mon Sep 17 00:00:00 2001 From: Marko Valtanen Date: Fri, 25 Nov 2011 15:38:04 +0200 Subject: QPrintPreviewDialog displays the second page instead of the first one when it is initially shown maximized. Task-number: QTBUG-14517 --- src/gui/widgets/qprintpreviewwidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v0.12