diff options
author | Gatis Paeglis <gatis.paeglis@digia.com> | 2013-09-23 15:37:53 +0200 |
---|---|---|
committer | Gatis Paeglis <gatis.paeglis@digia.com> | 2013-10-03 17:39:56 +0300 |
commit | dae902e9d22f89a890252633c66fd7ee26636192 (patch) | |
tree | 0fd36990d97584c4259c7147177b9480391c2925 /basicsuite/Sensors/main.qml | |
parent | 1bf9d73eff18fde3f7cfe0e6aa7e7edc39264e77 (diff) |
Add sensor demo to basicsuite
Change-Id: I72d733ffe29aaf99fdf67e9b981ffbecb9dacc1a
Reviewed-by: Gatis Paeglis <gatis.paeglis@digia.com>
Diffstat (limited to 'basicsuite/Sensors/main.qml')
-rw-r--r-- | basicsuite/Sensors/main.qml | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/basicsuite/Sensors/main.qml b/basicsuite/Sensors/main.qml new file mode 100644 index 0000000..2e1b820 --- /dev/null +++ b/basicsuite/Sensors/main.qml @@ -0,0 +1,28 @@ +import QtQuick 2.0 +import QtSensors 5.0 + +Item { + id: root + width: 800 + height: 1280 + Rectangle { + id: main + width: root.height + height: root.width + anchors.centerIn: parent + rotation: 90 + border.width: 1 + + Light { + id: lys + width: main.width + height: main.height / 2 + } + + Accelbubble { + width: main.width + height: main.height / 2 + anchors.top: lys.bottom + } + } +} |