summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@digia.com>2013-05-14 16:06:01 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-05-23 09:31:27 +0200
commit23fd348631cdec03736b5cd8bad2d877dddad38f (patch)
treecaa147fede27a634d24908190226af9fb4fb7296 /src
parent7582bb51f39f2336e9d14b83206873bbb3e47de3 (diff)
QPrintPreviewDialog: Prevent changing of page in resize handling.
Task-number: QTBUG-14517 Change-Id: I59e444eed8d44be9fb7213fdbab4be473d595be8 Reviewed-by: Andreas Aardal Hanssen <andreas@hanssen.name>
Diffstat (limited to 'src')
-rw-r--r--src/printsupport/widgets/qprintpreviewwidget.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/printsupport/widgets/qprintpreviewwidget.cpp b/src/printsupport/widgets/qprintpreviewwidget.cpp
index b2fa2ae533..f788663041 100644
--- a/src/printsupport/widgets/qprintpreviewwidget.cpp
+++ b/src/printsupport/widgets/qprintpreviewwidget.cpp
@@ -162,7 +162,9 @@ signals:
protected:
void resizeEvent(QResizeEvent* e)
{
+ const bool blocked = verticalScrollBar()->blockSignals(true); // Don't change page, QTBUG-14517
QGraphicsView::resizeEvent(e);
+ verticalScrollBar()->blockSignals(blocked);
emit resized();
}