summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/kernel/qwindow.cpp')
-rw-r--r--src/gui/kernel/qwindow.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/gui/kernel/qwindow.cpp b/src/gui/kernel/qwindow.cpp
index 4465a9aeb4..5eca2f413f 100644
--- a/src/gui/kernel/qwindow.cpp
+++ b/src/gui/kernel/qwindow.cpp
@@ -1453,8 +1453,12 @@ void QWindow::setGeometry(const QRect &rect)
}
}
-//######### This logic duplicated three times!!!!!
-// equivalent to QPlatformWindow::screenForGeometry, but in platform independent coordinates
+/*
+ This is equivalent to QPlatformWindow::screenForGeometry, but in platform
+ independent coordinates. The duplication is unfortunate, but there is a
+ chicken and egg problem here: we cannot convert to native coordinates
+ before we know which screen we are on.
+*/
QScreen *QWindowPrivate::screenForGeometry(const QRect &newGeometry)
{
Q_Q(QWindow);