diff options
author | Denis Dzyubenko <denis.dzyubenko@nokia.com> | 2009-11-02 10:13:39 (GMT) |
---|---|---|
committer | Denis Dzyubenko <denis.dzyubenko@nokia.com> | 2009-11-03 10:26:05 (GMT) |
commit | 4843b437b90800d238f14e7a4558045ddc37cd4b (patch) | |
tree | b3e8cb1a9b510200b8308e259af3327f5e807889 /src/gui/widgets/qtextedit.cpp | |
parent | 54db3afc9797a3adf5a38f35f6338960924e9e1a (diff) | |
download | Qt-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.cpp | 6 |
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) |