Fix QApplication::primaryScreen() in Windows
authorMiikka Heikkinen <miikka.heikkinen@digia.com>
Wed, 14 Nov 2012 10:22:19 +0000 (12:22 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Thu, 15 Nov 2012 12:55:00 +0000 (13:55 +0100)
commit9ae215925159f4e8f1a88fc6691c916eead67539
tree0d598f1de9baac82393a3465998a4348a8a97000
parente4c2a5c29f78def39801d8f2ea12b954594f7e7d
Fix QApplication::primaryScreen() in Windows

QPlatformInterface::screenAdded() documentation specifies that first
added screen will be the primary screen, so we need to ensure that
the screen Windows reports as the main display gets added first.

Task-number: QTBUG-27988
Change-Id: Ibc17b05a6c37007ff749fb54ab62d47ffa40f8ac
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
src/plugins/platforms/windows/qwindowsscreen.cpp