summaryrefslogtreecommitdiffstats
path: root/patches/qt-everywhere-opensource-src-4.6.3/0003-Hack-hide-cursor-during-startup.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patches/qt-everywhere-opensource-src-4.6.3/0003-Hack-hide-cursor-during-startup.patch')
-rw-r--r--patches/qt-everywhere-opensource-src-4.6.3/0003-Hack-hide-cursor-during-startup.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/patches/qt-everywhere-opensource-src-4.6.3/0003-Hack-hide-cursor-during-startup.patch b/patches/qt-everywhere-opensource-src-4.6.3/0003-Hack-hide-cursor-during-startup.patch
new file mode 100644
index 000000000..f4efd6b16
--- /dev/null
+++ b/patches/qt-everywhere-opensource-src-4.6.3/0003-Hack-hide-cursor-during-startup.patch
@@ -0,0 +1,30 @@
+From: Michael Olbrich <m.olbrich@pengutronix.de>
+Date: Wed, 2 Feb 2011 18:31:52 +0100
+Subject: [PATCH] Hack: hide cursor during startup
+
+This will hide the cursor during application startup.
+To keep it hidden the application must call
+QApplication::setOverrideCursor(Qt::BlankCursor);
+Otherwise the cursor returns when the mouse is moved.
+
+Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
+---
+ src/gui/embedded/qwscursor_qws.cpp | 2 +-
+ 1 files changed, 1 insertions(+), 1 deletions(-)
+
+diff --git a/src/gui/embedded/qwscursor_qws.cpp b/src/gui/embedded/qwscursor_qws.cpp
+index a9cd8aa..cb9f173 100644
+--- a/src/gui/embedded/qwscursor_qws.cpp
++++ b/src/gui/embedded/qwscursor_qws.cpp
+@@ -344,7 +344,7 @@ void QWSServerPrivate::initializeCursor()
+
+ // default cursor
+ cursor = 0;
+- setCursor(QWSCursor::systemCursor(Qt::ArrowCursor));
++ setCursor(QWSCursor::systemCursor(Qt::BlankCursor));
+ #endif
+ q->sendMouseEvent(QPoint(swidth/2, sheight/2), 0);
+ }
+--
+1.7.2.3
+