summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKonstantin Tokarev <annulen@yandex.ru>2016-04-21 20:38:02 +0300
committerKonstantin Tokarev <annulen@yandex.ru>2016-05-20 13:01:26 +0000
commitf1b22ccfb78cc9d18d707e6d6a24a5951c60ffa5 (patch)
treeac1f720e143df9e163139c0e27da19dd4e6ba137
parente23e63be27e195b4f4cf46f1d947720d85e5e044 (diff)
downloadqtwebkit-f1b22ccfb78cc9d18d707e6d6a24a5951c60ffa5.tar.gz
Disable touch_slider if touch_events is disabled.
touch_events is a prerequisite for touch_slider, however, touch_slider is added to WEBKIT_CONFIG before user options processing, so it's possible to produce meaningless configuration with disabled touch_events and enabled touch_slider. It's harmless because all ENABLE(TOUCH_SLIDER) code is also guarded with ENABLE(TOUCH_EVENTS), however it still may be confusing. Change-Id: I149c798f488ec9977ea5b168c0f5d7b7c53d1aec Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
-rw-r--r--Tools/qmake/mkspecs/features/features.prf6
-rw-r--r--Tools/qmake/mkspecs/features/features.pri1
2 files changed, 4 insertions, 3 deletions
diff --git a/Tools/qmake/mkspecs/features/features.prf b/Tools/qmake/mkspecs/features/features.prf
index b7fb4c43b..21286be2e 100644
--- a/Tools/qmake/mkspecs/features/features.prf
+++ b/Tools/qmake/mkspecs/features/features.prf
@@ -136,9 +136,6 @@ defineTest(detectFeatures) {
have?(glx):have?(xcomposite):have?(xrender): WEBKIT_CONFIG += use_graphics_surface use_glx
}
- # Slider Touch is sensible to use when compiling WebKit2
- enable?(touch_events): WEBKIT_CONFIG += touch_slider
-
# IndexedDB requires leveldb
enable?(indexed_database): WEBKIT_CONFIG += use_leveldb
@@ -185,5 +182,8 @@ defineTest(sanitizeFeatures) {
# Accelerated 2D canvas uses 3D graphics support.
!use?(3d_graphics): WEBKIT_CONFIG -= accelerated_2d_canvas
+ # Touch slider requires touch events
+ !enable?(touch_events): WEBKIT_CONFIG -= touch_slider
+
export(WEBKIT_CONFIG)
}
diff --git a/Tools/qmake/mkspecs/features/features.pri b/Tools/qmake/mkspecs/features/features.pri
index 1978aa081..ba18b354d 100644
--- a/Tools/qmake/mkspecs/features/features.pri
+++ b/Tools/qmake/mkspecs/features/features.pri
@@ -114,6 +114,7 @@ FEATURE_DEFAULTS = \
ENABLE_TOUCH_ADJUSTMENT=1 \
ENABLE_TOUCH_EVENTS=1 \
ENABLE_TOUCH_ICON_LOADING=0 \
+ ENABLE_TOUCH_SLIDER=1 \
ENABLE_USER_TIMING=0 \
ENABLE_VIBRATION=0 \
ENABLE_VIDEO=0 \