From 52f5e50f11a3ba82e32dc2efc656e4021a3fa4f5 Mon Sep 17 00:00:00 2001 From: Sandro Mani Date: Mon, 2 Feb 2015 17:14:40 +0100 Subject: Ensure QGuiApplicationPrivate::screen_list is correctly populated MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Ensure QGuiApplicationPrivate::screen_list always contains at least one screen, and that the first item (returned by QGuiApplication::primaryScreen) is always the current primary screen Task-number: QTBUG-42985 Change-Id: I08b880b3e94387f28230ed5fc738bceea943bad3 Reviewed-by: Jørgen Lind --- src/plugins/platforms/windows/qwindowsintegration.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/plugins/platforms/windows/qwindowsintegration.h') diff --git a/src/plugins/platforms/windows/qwindowsintegration.h b/src/plugins/platforms/windows/qwindowsintegration.h index 901538fa2e..8a2d14f172 100644 --- a/src/plugins/platforms/windows/qwindowsintegration.h +++ b/src/plugins/platforms/windows/qwindowsintegration.h @@ -93,7 +93,7 @@ public: static QWindowsIntegration *instance() { return m_instance; } - inline void emitScreenAdded(QPlatformScreen *s) { screenAdded(s); } + inline void emitScreenAdded(QPlatformScreen *s, bool isPrimary = false) { screenAdded(s, isPrimary); } inline void emitDestroyScreen(QPlatformScreen *s) { destroyScreen(s); } unsigned options() const; -- cgit v1.2.3