From: Shawn Rutledge Date: Mon, 18 Feb 2013 15:48:24 +0000 (+0100) Subject: QQuickScreen is exposed as an attached property on Window too X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=bbc9008f077bccd811483608d9a436cce3e923f5;p=konrad%2Fqtdeclarative.git QQuickScreen is exposed as an attached property on Window too Change-Id: I13ee75247cbe6238de1b58cf0005c39fc4314e96 Reviewed-by: Alan Alpert --- diff --git a/src/quick/items/qquickscreen.cpp b/src/quick/items/qquickscreen.cpp index 7c7d8a6..3ab93e6 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(attachee); + if (window) + windowChanged(window); } }