summaryrefslogtreecommitdiffstats
path: root/examples/widgets/pdfviewer/mainwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/widgets/pdfviewer/mainwindow.cpp')
-rw-r--r--examples/widgets/pdfviewer/mainwindow.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/examples/widgets/pdfviewer/mainwindow.cpp b/examples/widgets/pdfviewer/mainwindow.cpp
index 71b35ef..f3fa000 100644
--- a/examples/widgets/pdfviewer/mainwindow.cpp
+++ b/examples/widgets/pdfviewer/mainwindow.cpp
@@ -4,6 +4,7 @@
#include <QFileDialog>
#include <QLineEdit>
#include <QMessageBox>
+#include <QScroller>
#include <QPdfDocument>
#include <QtMath>
#include "sequentialpagewidget.h"
@@ -33,6 +34,8 @@ MainWindow::MainWindow(QWidget *parent)
this, SLOT(zoomChanged(qreal)));
connect(m_zoomEdit, SIGNAL(returnPressed()), this, SLOT(zoomEdited()));
connect(m_pageEdit, SIGNAL(returnPressed()), this, SLOT(on_actionGo_triggered()));
+
+ QScroller::grabGesture(ui->scrollArea);
}
MainWindow::~MainWindow()