Skip to contentSkip to conversation

Option to disable mouse cursor in QT

PATCH New jean at iddad.fr 1 participant 1 message Sep 29, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Option to disable mouse cursor in QT

Adds a configuration option to disable Mouse Cursor in QT.
This is especially useful with touchscreens where we don't need a mouse cursor.

---

package/qt/Config.in 2010-09-28 08:56:31.000000000 +0100 renamed from package/qt/Config.in 2010-08-31 23:07:06.000000000 +0100 +8 -0
diff -ru buildroot-2010.08/package/qt/Config.in buildroot-2010.08-patched/package/qt/Config.in
@@ -373,4 +373,12 @@
          Build the Qt Script Tools module.
          if unsure, say n.
 
+config BR2_PACKAGE_QT_CURSOR
+       bool "Mouse Cursor"
+       default y
+       help
+         Enables the mouse cursor.
+         If using a touchscreen, say n to prevent the cursor from being displayed.
+
+
 endif # BR2_PACKAGE_QT
package/qt/qt.mk 2010-09-28 08:56:54.000000000 +0100 renamed from package/qt/qt.mk 2010-08-31 23:07:06.000000000 +0100 +6 -0
diff -ru buildroot-2010.08/package/qt/qt.mk buildroot-2010.08-patched/package/qt/qt.mk
@@ -371,6 +371,12 @@
 QT_CONFIGURE += -no-pch
 endif
 
+ifeq ($(BR2_PACKAGE_QT_CURSOR),y)
+QT_CONFIGURE+= -feature-CURSOR
+else
+QT_CONFIGURE+= -no-feature-CURSOR
+endif
+
 BR2_PACKAGE_QT_EMB_PLATFORM:=$(call qstrip,$(BR2_PACKAGE_QT_EMB_PLATFORM))
 
 # x86x86fix