From 177960b77ce7b02b853c45278b7c7068783be49f Mon Sep 17 00:00:00 2001 From: Sami Merila Date: Fri, 29 Oct 2010 12:52:21 +0300 Subject: Support tactile feeedback from QS60Style for QWidgets Currently tactile feedback is not given for QWidgets running on Symbian even if the native side supports this (Sym^3 and 5th Edition devices). This task adds support for QWidgets having QS60Style. The tactile feedback has been implemented as a plugin that the style loads when instantiating itself for touch devices. NOTE that the feedback is NOT supported by the emulated style, nor is the plugin interface public, so it cannot be used outside of style. The implementation is simplistic, since we only want to provide stop-gap solution until 4.8 when real Qt feedback implementation is ready. The implementation will only give feedback for touch-down events for visible, interactive and enabled widgets. Sliders and scrollbars will use sensitive feedback (slightly less aggressive) and all others will use basic feedback. Note that Sym^3 adds tens of different feedback categories, which this plugin ignores as we want to share the same implementation for Sym^3 and 5th ed. In distributed Qt package there is no tactile feedback for 5th edition, due to package creation limitations. Support can be added manually by re-compiling Qt on top of 5th Edition SDK. Task-number: QT-4037 Reviewed-by: Jani Hautakangas Reviewed-by: Janne Koskinen --- src/s60installs/s60installs.pro | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/s60installs/s60installs.pro') diff --git a/src/s60installs/s60installs.pro b/src/s60installs/s60installs.pro index 9559da68c8..23b3d8f17b 100644 --- a/src/s60installs/s60installs.pro +++ b/src/s60installs/s60installs.pro @@ -86,6 +86,12 @@ symbian: { bearer_plugin.path = c:$$QT_PLUGINS_BASE_DIR/bearer DEPLOYMENT += bearer_plugin } + + contains(S60_VERSION, 5.0)|contains(S60_VERSION, symbian3) { + feedback_plugin.sources = $$QT_BUILD_TREE/plugins/s60/feedback/qtactilefeedback$${QT_LIBINFIX}.dll + feedback_plugin.path = c:$$QT_PLUGINS_BASE_DIR/feedback + DEPLOYMENT += feedback_plugin + } qtlibraries.pkg_postrules += qts60plugindeployment -- cgit v1.2.3 From 30524cf5c745d07372b66df90235bab0080148a3 Mon Sep 17 00:00:00 2001 From: Sami Merila Date: Fri, 29 Oct 2010 13:12:47 +0300 Subject: Support tactile feedback in QWidgets from QS60Style Addition to previous task. Remove white-space from .pro-file. Task-number: QT-4037 Reviewed-by: Janne Koskinen --- src/s60installs/s60installs.pro | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/s60installs/s60installs.pro') diff --git a/src/s60installs/s60installs.pro b/src/s60installs/s60installs.pro index 23b3d8f17b..65b8781ee4 100644 --- a/src/s60installs/s60installs.pro +++ b/src/s60installs/s60installs.pro @@ -86,7 +86,7 @@ symbian: { bearer_plugin.path = c:$$QT_PLUGINS_BASE_DIR/bearer DEPLOYMENT += bearer_plugin } - + contains(S60_VERSION, 5.0)|contains(S60_VERSION, symbian3) { feedback_plugin.sources = $$QT_BUILD_TREE/plugins/s60/feedback/qtactilefeedback$${QT_LIBINFIX}.dll feedback_plugin.path = c:$$QT_PLUGINS_BASE_DIR/feedback -- cgit v1.2.3