summaryrefslogtreecommitdiffstats
path: root/patches/qt-everywhere-opensource-src-4.6.3/0003-Hack-hide-cursor-during-startup.patch
blob: f4efd6b161593aa7ff17c797e27c6e127bea1ac3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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