summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qplatformscreen_qpa.cpp
diff options
context:
space:
mode:
authorSamuel Rødal <samuel.rodal@nokia.com>2011-04-29 15:45:30 +0200
committerSamuel Rødal <samuel.rodal@nokia.com>2011-04-29 15:46:07 +0200
commit57b7c82560088149010b000bc78a3a6d8f2f8834 (patch)
treea78376c695b0f649c7fcb4992a1dafa6b1e4cb13 /src/gui/kernel/qplatformscreen_qpa.cpp
parentc1aa42e195cc6ad6b94b4d666fcdf7599dd91e8c (diff)
Add QWidgetWindow to bridge events from QWindow to QWidget.
Gets rid of QWidget dependencies in QWindow and QWindowSurface. Events are not delivered to the correct child widget yet.
Diffstat (limited to 'src/gui/kernel/qplatformscreen_qpa.cpp')
-rw-r--r--src/gui/kernel/qplatformscreen_qpa.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gui/kernel/qplatformscreen_qpa.cpp b/src/gui/kernel/qplatformscreen_qpa.cpp
index 4fd6896a95..79059de4f7 100644
--- a/src/gui/kernel/qplatformscreen_qpa.cpp
+++ b/src/gui/kernel/qplatformscreen_qpa.cpp
@@ -95,6 +95,11 @@ QPlatformScreen * QPlatformScreen::platformScreenForWidget(const QWidget *widget
return integration->screens()[screenIndex];
}
+QPlatformScreen * QPlatformScreen::platformScreenForWindow(const QWindow *window)
+{
+ return QGuiApplicationPrivate::platformIntegration()->screens().at(0);
+}
+
/*!
\class QPlatformScreen
\since 4.8