summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShawn Rutledge <shawn.rutledge@theqtcompany.com>2014-12-16 11:07:34 +0100
committerShawn Rutledge <shawn.rutledge@theqtcompany.com>2014-12-16 11:07:34 +0100
commit374ef6158d0d587b11cdcca628bb62589ef4f8a1 (patch)
tree43c0f7acd0348bedcd30aa75e2a42a673da0774d
parent472b2be477ff2d17c5904f19e43c21de4c55adc6 (diff)
QScroller doesn't work unless a gesture is grabbed
correction to 0108ecad44e04be9d0b60f4b6b7e0fceb69ea034 QScroller was working because of a subsequent patch that tried to add pinch zooming.
-rw-r--r--examples/widgets/pdfviewer/sequentialpagewidget.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/widgets/pdfviewer/sequentialpagewidget.cpp b/examples/widgets/pdfviewer/sequentialpagewidget.cpp
index c5ba650..81ab8cc 100644
--- a/examples/widgets/pdfviewer/sequentialpagewidget.cpp
+++ b/examples/widgets/pdfviewer/sequentialpagewidget.cpp
@@ -23,6 +23,7 @@ SequentialPageWidget::SequentialPageWidget(QWidget *parent)
, m_screenResolution(QGuiApplication::primaryScreen()->logicalDotsPerInch() / 72.0)
{
connect(m_pageRenderer, SIGNAL(pageReady(int, qreal, QImage)), this, SLOT(pageLoaded(int, qreal, QImage)), Qt::QueuedConnection);
+ grabGesture(Qt::SwipeGesture);
}
SequentialPageWidget::~SequentialPageWidget()