aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/items/qquickscreen.cpp
diff options
context:
space:
mode:
authorShawn Rutledge <shawn.rutledge@digia.com>2013-02-18 16:48:24 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-02-20 11:16:49 +0100
commitbbc9008f077bccd811483608d9a436cce3e923f5 (patch)
treef83a74ad9eacb56467c7e20e90fda60d6abe8700 /src/quick/items/qquickscreen.cpp
parent8e949e741bab0ee084444bb176a57ad61deb0f3f (diff)
QQuickScreen is exposed as an attached property on Window too
Change-Id: I13ee75247cbe6238de1b58cf0005c39fc4314e96 Reviewed-by: Alan Alpert <aalpert@rim.com>
Diffstat (limited to 'src/quick/items/qquickscreen.cpp')
-rw-r--r--src/quick/items/qquickscreen.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/quick/items/qquickscreen.cpp b/src/quick/items/qquickscreen.cpp
index 7c7d8a6eab..3ab93e6d0f 100644
--- a/src/quick/items/qquickscreen.cpp
+++ b/src/quick/items/qquickscreen.cpp
@@ -112,6 +112,10 @@ QQuickScreenAttached::QQuickScreenAttached(QObject* attachee)
if (m_attachee->window()) //It might not be assigned to a window yet
windowChanged(m_attachee->window());
+ } else {
+ QQuickWindow *window = qobject_cast<QQuickWindow*>(attachee);
+ if (window)
+ windowChanged(window);
}
}