summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qplatformintegration.h
diff options
context:
space:
mode:
authorSandro Mani <manisandro@gmail.com>2015-02-02 17:14:40 +0100
committerShawn Rutledge <shawn.rutledge@digia.com>2015-02-25 12:15:05 +0000
commit52f5e50f11a3ba82e32dc2efc656e4021a3fa4f5 (patch)
tree7c77a6e56d24ea1a34cc963546dad12ace95f3de /src/gui/kernel/qplatformintegration.h
parentdf39295f23c7d9ead8481a95b9c78caaff1e8bc8 (diff)
Ensure QGuiApplicationPrivate::screen_list is correctly populated
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 <jorgen.lind@theqtcompany.com>
Diffstat (limited to 'src/gui/kernel/qplatformintegration.h')
-rw-r--r--src/gui/kernel/qplatformintegration.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/kernel/qplatformintegration.h b/src/gui/kernel/qplatformintegration.h
index a0756a4992..e6a2ef6a1f 100644
--- a/src/gui/kernel/qplatformintegration.h
+++ b/src/gui/kernel/qplatformintegration.h
@@ -171,7 +171,7 @@ public:
#endif
protected:
- void screenAdded(QPlatformScreen *screen);
+ void screenAdded(QPlatformScreen *screen, bool isPrimary = false);
void destroyScreen(QPlatformScreen *screen);
};