QPrintPreviewWidget: use QSignalBlocker
Change-Id: Ic2d48c8e2c9c3c6f06e67ebf7e12bd4899b421aa Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
This commit is contained in:
parent
abbffdd4be
commit
64050fe92e
@ -162,9 +162,10 @@ signals:
|
|||||||
protected:
|
protected:
|
||||||
void resizeEvent(QResizeEvent* e)
|
void resizeEvent(QResizeEvent* e)
|
||||||
{
|
{
|
||||||
const bool blocked = verticalScrollBar()->blockSignals(true); // Don't change page, QTBUG-14517
|
{
|
||||||
QGraphicsView::resizeEvent(e);
|
const QSignalBlocker blocker(verticalScrollBar()); // Don't change page, QTBUG-14517
|
||||||
verticalScrollBar()->blockSignals(blocked);
|
QGraphicsView::resizeEvent(e);
|
||||||
|
}
|
||||||
emit resized();
|
emit resized();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user