summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qwidget_win.cpp
diff options
context:
space:
mode:
authorDenis Dzyubenko <denis.dzyubenko@nokia.com>2009-11-06 16:26:43 (GMT)
committerDenis Dzyubenko <denis.dzyubenko@nokia.com>2009-11-06 16:44:24 (GMT)
commitd672ff5ddc23fe7c332d17b32378a00e21fad7b3 (patch)
tree2d6c44a817697ca7b13ff91afa1ae73bbc361dd7 /src/gui/kernel/qwidget_win.cpp
parent69f0cfbb9c609ac922a6d45a7ef3d75b59d23c25 (diff)
downloadQt-d672ff5ddc23fe7c332d17b32378a00e21fad7b3.zip
Qt-d672ff5ddc23fe7c332d17b32378a00e21fad7b3.tar.gz
Qt-d672ff5ddc23fe7c332d17b32378a00e21fad7b3.tar.bz2
Added a -no-native-gestures option for configure.exe
The option allows to disable native Windows7 gestures since they require the creation of the native window handle. This partially disabled alien widgets concept and make window resizing slower and more flickery. Reviewed-by: Espen Riskedal
Diffstat (limited to 'src/gui/kernel/qwidget_win.cpp')
-rw-r--r--src/gui/kernel/qwidget_win.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/kernel/qwidget_win.cpp b/src/gui/kernel/qwidget_win.cpp
index 95ef1cf..87f1cad 100644
--- a/src/gui/kernel/qwidget_win.cpp
+++ b/src/gui/kernel/qwidget_win.cpp
@@ -2032,6 +2032,7 @@ void QWidgetPrivate::registerTouchWindow()
void QWidgetPrivate::winSetupGestures()
{
+#if !defined(QT_NO_NATIVE_GESTURES)
Q_Q(QWidget);
if (!q || !q->isVisible() || !nativeGesturePanEnabled)
return;
@@ -2080,6 +2081,7 @@ void QWidgetPrivate::winSetupGestures()
qAppPriv->SetGestureConfig(winid, 0, sizeof(gc)/sizeof(gc[0]), gc, sizeof(gc[0]));
}
+#endif
}
QT_END_NAMESPACE