aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/items/qquickitem_p.h
diff options
context:
space:
mode:
authorAlan Alpert <alan.alpert@nokia.com>2011-12-05 09:35:33 +1000
committerQt by Nokia <qt-info@nokia.com>2011-12-09 08:58:10 +0100
commit8724847a9e26e17852ee08b9b0d70b1d648661a0 (patch)
tree4540f67e6a051a0221c8ba884cdf963651918550 /src/quick/items/qquickitem_p.h
parentf64d29ea65d002d1af3f24cc05f9859f629fa4fe (diff)
Add Screen attached object
Use this to get details of the screen such as size and current orientation. As well as adding its own example, this commit updates Calculator to use Screen instead of Runtime for orientation. Change-Id: I1b73d2ee22a92b1dee827de1bd893eebec9f5817 Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
Diffstat (limited to 'src/quick/items/qquickitem_p.h')
-rw-r--r--src/quick/items/qquickitem_p.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/quick/items/qquickitem_p.h b/src/quick/items/qquickitem_p.h
index 79d98d7fe4..e9c9498c44 100644
--- a/src/quick/items/qquickitem_p.h
+++ b/src/quick/items/qquickitem_p.h
@@ -83,6 +83,7 @@ QT_BEGIN_NAMESPACE
class QNetworkReply;
class QQuickItemKeyFilter;
class QQuickLayoutMirroringAttached;
+class QQuickScreenAttached;
class QQuickContents : public QQuickItemChangeListener
{
@@ -445,6 +446,8 @@ public:
virtual void mirrorChange() {}
+ QQuickScreenAttached *screenAttached;
+
static qint64 consistentTime;
static void setConsistentTime(qint64 t);
static void start(QElapsedTimer &);