Go to file
Miikka Heikkinen 90de0c4178 Fix mouse cursor behavior for QMainWindow splitters
The cursor handling has changed in Qt5 somewhat, which made old cursor
logic for splitters invalid, causing the splitter resize cursor to
persist after hovering over splitter, as well as cursor flicker
during splitter drag.

Since the cursor is changed always in dispatchEnterLeave, CursorChange
event can now come for QMainWindow when cursor hasn't actually changed,
so we now check if the cursor is still our adjusted cursor before
updating the old stored cursor. We also ensure that our adjusted cursor
stays visible if cursor is in fact changed - the changed cursor will
be shown when we no longer need adjusted cursor.

Additionally, we skip cursor adjustments while we are dragging the
splitter to avoid cursor flicker, which is caused by splitter actually
moving asynchronously after the mouse event is handled.

Task-number: QTBUG-27970
Change-Id: Id9f6a0e9653563e09b883f21396de056a88f78a7
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
Reviewed-by: Samuel Rødal <samuel.rodal@digia.com>
2012-11-15 10:56:52 +01:00
bin Rename the syncqt -qtdir to -mkspecsdir 2012-10-19 00:44:54 +02:00
config.tests Add configure option to minimize xcb runtime dependencies 2012-11-07 16:55:50 +01:00
dist QTBF: Remove StartOfItem/EndOfItem enum values 2012-11-09 22:39:56 +01:00
doc CONFIG+=uitools is deprecated. Use QT+=uitools instead 2012-10-31 19:56:55 +01:00
examples Rename all QWindow properties that have "window" in them 2012-11-07 21:26:08 +01:00
lib Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
mkspecs qtAddModule(): define PRE_TARGETDEPS for static modules 2012-11-14 12:29:01 +01:00
qmake complain about empty $$TARGET 2012-11-13 18:51:15 +01:00
src Fix mouse cursor behavior for QMainWindow splitters 2012-11-15 10:56:52 +01:00
tests QMimeDatabase: Fix handling of duplicate mimetype definitions. 2012-11-14 14:18:31 +01:00
tools Add -archdatadir and change some of the default install dirs in Qt 5. 2012-11-11 07:41:50 +01:00
util CONFIG+=uitools is deprecated. Use QT+=uitools instead 2012-10-31 19:56:55 +01:00
.gitattributes Update the git-archive export options 2012-09-07 15:39:31 +02:00
.gitignore Drop Symbian Carbide settings from .gitignore 2012-10-26 11:53:06 +02:00
.qmake.conf add a .qmake.conf file which load()s qt_build_config 2012-10-18 17:42:40 +02:00
.tag Update the git-archive export options 2012-09-07 15:39:31 +02:00
configure Add -archdatadir and change some of the default install dirs in Qt 5. 2012-11-11 07:41:50 +01:00
configure.bat Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
header.BSD Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
header.FDL Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
header.LGPL Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
header.LGPL-ONLY Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
INSTALL fix links in INSTALL 2012-10-10 08:45:22 +02:00
LGPL_EXCEPTION.txt Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
LICENSE.FDL Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
LICENSE.GPL Add the LICENSE.GPL file to the module referenced from license headers 2012-05-20 22:41:08 +02:00
LICENSE.LGPL Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
LICENSE.PREVIEW.COMMERCIAL Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qtbase.pro rewrite default spec handling 2012-11-01 20:17:57 +01:00
sync.profile Exclude ANGLE headers from syncqt-checks. 2012-11-02 12:16:49 +01:00