Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] Option to disable mouse cursor in QT
@ 2010-09-28 15:18 jean at iddad.fr
  2010-09-28 17:19 ` Thomas Petazzoni
  0 siblings, 1 reply; 3+ messages in thread
From: jean at iddad.fr @ 2010-09-28 15:18 UTC (permalink / raw)
  To: buildroot

 Hi,

My company is developing a touch screen product and we are using QT. Because of the touch screen, I don't want to display any mouse pointer/cursor so I patched buildroot to disable it at configuration time.
As touchscreens become more and more common some other people may need this patch as well, so here it is:

diff -crB buildroot-2010.08/package/qt/Config.in buildroot-2010.08-patched/package/qt/Config.in
*** buildroot-2010.08/package/qt/Config.in 2010-08-31 23:07:06.000000000 +0100
--- buildroot-2010.08-patched/package/qt/Config.in 2010-09-28 08:56:31.000000000 +0100
***************
*** 373,376 ****
--- 373,384 ----
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
diff -crB buildroot-2010.08/package/qt/qt.mk buildroot-2010.08-patched/package/qt/qt.mk
*** buildroot-2010.08/package/qt/qt.mk 2010-08-31 23:07:06.000000000 +0100
--- buildroot-2010.08-patched/package/qt/qt.mk 2010-09-28 08:56:54.000000000 +0100
***************
*** 371,376 ****
--- 371,382 ----
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


Regards,

Jean

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Buildroot] [PATCH] Option to disable mouse cursor in QT
  2010-09-28 15:18 [Buildroot] [PATCH] Option to disable mouse cursor in QT jean at iddad.fr
@ 2010-09-28 17:19 ` Thomas Petazzoni
  0 siblings, 0 replies; 3+ messages in thread
From: Thomas Petazzoni @ 2010-09-28 17:19 UTC (permalink / raw)
  To: buildroot

Hello Jean,

On Tue, 28 Sep 2010 17:18:48 +0200
<jean@iddad.fr> wrote:

> My company is developing a touch screen product and we are using QT. Because of the touch
> screen, I don't want to display any mouse pointer/cursor so I patched
> buildroot to disable it at configuration time. As touchscreens become more and more common
> some other people may need this patch as well, so here it is:

Sounds like a good thing to have.

Could you format your patch as an unified diff, and add the proper
description + signed-off-by-line ? This would allow us to keep proper
attribution on the patch. If you're not interested by being directly
attributed the work of this patch, I can also merge it manually.

Regards,

Thomas
-- 
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Buildroot] [PATCH] Option to disable mouse cursor in QT
@ 2010-09-29 13:35 jean at iddad.fr
  0 siblings, 0 replies; 3+ messages in thread
From: jean at iddad.fr @ 2010-09-29 13:35 UTC (permalink / raw)
  To: buildroot

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

Signed-off-by: Jean-Gregoire Foulon <jean@iddad.fr>
---
diff -ru buildroot-2010.08/package/qt/Config.in buildroot-2010.08-patched/package/qt/Config.in
--- buildroot-2010.08/package/qt/Config.in      2010-08-31 23:07:06.000000000 +0100
+++ buildroot-2010.08-patched/package/qt/Config.in      2010-09-28 08:56:31.000000000 +0100
@@ -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
diff -ru buildroot-2010.08/package/qt/qt.mk buildroot-2010.08-patched/package/qt/qt.mk
--- buildroot-2010.08/package/qt/qt.mk  2010-08-31 23:07:06.000000000 +0100
+++ buildroot-2010.08-patched/package/qt/qt.mk  2010-09-28 08:56:54.000000000 +0100
@@ -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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-09-29 13:35 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-28 15:18 [Buildroot] [PATCH] Option to disable mouse cursor in QT jean at iddad.fr
2010-09-28 17:19 ` Thomas Petazzoni
  -- strict thread matches above, loose matches on Subject: below --
2010-09-29 13:35 jean at iddad.fr

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox