summaryrefslogtreecommitdiffstats
path: root/src/gui/widgets/qtextedit.cpp
diff options
context:
space:
mode:
authorDenis Dzyubenko <denis.dzyubenko@nokia.com>2009-11-02 10:13:39 (GMT)
committerDenis Dzyubenko <denis.dzyubenko@nokia.com>2009-11-03 10:26:05 (GMT)
commit4843b437b90800d238f14e7a4558045ddc37cd4b (patch)
treeb3e8cb1a9b510200b8308e259af3327f5e807889 /src/gui/widgets/qtextedit.cpp
parent54db3afc9797a3adf5a38f35f6338960924e9e1a (diff)
downloadQt-4843b437b90800d238f14e7a4558045ddc37cd4b.zip
Qt-4843b437b90800d238f14e7a4558045ddc37cd4b.tar.gz
Qt-4843b437b90800d238f14e7a4558045ddc37cd4b.tar.bz2
Made native Pan gesture work on Windows.
Reviewed-by: trustme
Diffstat (limited to 'src/gui/widgets/qtextedit.cpp')
-rw-r--r--src/gui/widgets/qtextedit.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/widgets/qtextedit.cpp b/src/gui/widgets/qtextedit.cpp
index f477fee..355b678 100644
--- a/src/gui/widgets/qtextedit.cpp
+++ b/src/gui/widgets/qtextedit.cpp
@@ -116,9 +116,6 @@ QTextEditPrivate::QTextEditPrivate()
preferRichText = false;
showCursorOnInitialShow = true;
inDrag = false;
-#ifdef Q_WS_WIN
- setSingleFingerPanEnabled(true);
-#endif
}
void QTextEditPrivate::createAutoBulletList()
@@ -186,6 +183,9 @@ void QTextEditPrivate::init(const QString &html)
#ifndef QT_NO_CURSOR
viewport->setCursor(Qt::IBeamCursor);
#endif
+#ifdef Q_WS_WIN
+ setSingleFingerPanEnabled(true);
+#endif
}
void QTextEditPrivate::_q_repaintContents(const QRectF &contentsRect)