diff options
author | Denis Dzyubenko <denis.dzyubenko@nokia.com> | 2009-09-01 11:10:53 +0200 |
---|---|---|
committer | Denis Dzyubenko <denis.dzyubenko@nokia.com> | 2009-09-03 11:30:54 +0200 |
commit | a1a0ea71d8861e2b794f2f9b55447d50fc520de3 (patch) | |
tree | 4501c80ddb47c3dbe9526c16f8ede26716054a54 /src/gui/widgets/qplaintextedit.cpp | |
parent | 0d5b6dccf5fa854632e61971364629b36e0d3857 (diff) | |
download | qt4-tools-a1a0ea71d8861e2b794f2f9b55447d50fc520de3.tar.gz |
Improved the gesture api.
Added a new widget attribute Qt::WA_DontUseStandardGestures that disables all
implicit gestures (i.e. gestures that are automatically enabled by Qt itself).
This change also changes the way gestures are handled on
QAbstractScrollArea-based widgets on Windows - the gestures are supposed to be
created on the viewport widget.
Reviewed-by: Bradley T. Hughes
Diffstat (limited to 'src/gui/widgets/qplaintextedit.cpp')
-rw-r--r-- | src/gui/widgets/qplaintextedit.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/gui/widgets/qplaintextedit.cpp b/src/gui/widgets/qplaintextedit.cpp index c79e482b52..085341ccdb 100644 --- a/src/gui/widgets/qplaintextedit.cpp +++ b/src/gui/widgets/qplaintextedit.cpp @@ -794,10 +794,6 @@ void QPlainTextEditPrivate::init(const QString &txt) viewport->setCursor(Qt::IBeamCursor); #endif originalOffsetY = 0; -#ifdef Q_WS_WIN - panGesture = new QPanGesture(q); - QObject::connect(panGesture, SIGNAL(triggered()), q, SLOT(_q_gestureTriggered())); -#endif } void QPlainTextEditPrivate::_q_repaintContents(const QRectF &contentsRect) |