summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qplatformwindow.cpp
diff options
context:
space:
mode:
authorAnton Kudryavtsev <a.kudryavtsev@netris.ru>2016-02-20 11:57:23 +0300
committerAnton Kudryavtsev <a.kudryavtsev@netris.ru>2016-02-24 08:11:59 +0000
commitea711d0f59d6272f14b61cb2fd3dc1ede2cc1eb6 (patch)
tree6a472ff311095619073ca24763c218b5d9ae14c7 /src/gui/kernel/qplatformwindow.cpp
parentad9340de99a9961a8d34c7e430638a7c01c3d2be (diff)
QPlatformWindow: don't call QScreen::virtualSiblings()
... when QT_NO_CURSOR is enabled. Then, result of this function is unneeded. Change-Id: I0e74e1aa5253de2608c4c18cb2c4b4e2e9f4c9e2 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@theqtcompany.com>
Diffstat (limited to 'src/gui/kernel/qplatformwindow.cpp')
-rw-r--r--src/gui/kernel/qplatformwindow.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/kernel/qplatformwindow.cpp b/src/gui/kernel/qplatformwindow.cpp
index 769d30888b..1d444f94c9 100644
--- a/src/gui/kernel/qplatformwindow.cpp
+++ b/src/gui/kernel/qplatformwindow.cpp
@@ -552,8 +552,8 @@ static inline const QScreen *effectiveScreen(const QWindow *window)
const QScreen *screen = window->screen();
if (!screen)
return QGuiApplication::primaryScreen();
- const QList<QScreen *> siblings = screen->virtualSiblings();
#ifndef QT_NO_CURSOR
+ const QList<QScreen *> siblings = screen->virtualSiblings();
if (siblings.size() > 1) {
const QPoint referencePoint = window->transientParent() ? window->transientParent()->geometry().center() : QCursor::pos();
for (const QScreen *sibling : siblings) {