summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qapplication_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/qapplication_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/qapplication_win.cpp')
-rw-r--r--src/gui/kernel/qapplication_win.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/kernel/qapplication_win.cpp b/src/gui/kernel/qapplication_win.cpp
index 387c29b..05e75a2 100644
--- a/src/gui/kernel/qapplication_win.cpp
+++ b/src/gui/kernel/qapplication_win.cpp
@@ -832,6 +832,7 @@ void qt_init(QApplicationPrivate *priv, int)
priv->GetGestureInfo = (PtrGetGestureInfo) &TKGetGestureInfo;
priv->GetGestureExtraArgs = (PtrGetGestureExtraArgs) &TKGetGestureExtraArguments;
#elif !defined(Q_WS_WINCE)
+ #if !defined(QT_NO_NATIVE_GESTURES)
priv->GetGestureInfo =
(PtrGetGestureInfo)QLibrary::resolve(QLatin1String("user32"),
"GetGestureInfo");
@@ -847,6 +848,7 @@ void qt_init(QApplicationPrivate *priv, int)
priv->GetGestureConfig =
(PtrGetGestureConfig)QLibrary::resolve(QLatin1String("user32"),
"GetGestureConfig");
+ #endif // QT_NO_NATIVE_GESTURES
priv->BeginPanningFeedback =
(PtrBeginPanningFeedback)QLibrary::resolve(QLatin1String("uxtheme"),
"BeginPanningFeedback");