diff options
author | Tomi Korpipää <tomi.korpipaa@digia.com> | 2013-06-25 10:21:10 +0300 |
---|---|---|
committer | Tomi Korpipää <tomi.korpipaa@digia.com> | 2013-06-25 11:21:16 +0300 |
commit | 0f6952b28a7e9c2aa92ea55360d3c79bc490c6ac (patch) | |
tree | 7c6b55758bd86a14f5876069eb6d5e6f20485e1c /examples/qmlmaps | |
parent | 915bf9bb2d1f067852f3ceb49b9f8eaab6f40be2 (diff) |
DeclarativeMaps fixes
Change-Id: I9b925f833b6ee4fe10c302a38807de4d5f88ce67
Change-Id: I9b925f833b6ee4fe10c302a38807de4d5f88ce67
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@digia.com>
Diffstat (limited to 'examples/qmlmaps')
-rw-r--r-- | examples/qmlmaps/floorplan.jpg | bin | 0 -> 108298 bytes | |||
-rw-r--r-- | examples/qmlmaps/image.jpg | bin | 287172 -> 0 bytes | |||
-rw-r--r-- | examples/qmlmaps/qml/qmlmaps/main.qml | 44 | ||||
-rw-r--r-- | examples/qmlmaps/qmlmaps.qrc | 2 |
4 files changed, 25 insertions, 21 deletions
diff --git a/examples/qmlmaps/floorplan.jpg b/examples/qmlmaps/floorplan.jpg Binary files differnew file mode 100644 index 00000000..578d8252 --- /dev/null +++ b/examples/qmlmaps/floorplan.jpg diff --git a/examples/qmlmaps/image.jpg b/examples/qmlmaps/image.jpg Binary files differdeleted file mode 100644 index b6c48e76..00000000 --- a/examples/qmlmaps/image.jpg +++ /dev/null diff --git a/examples/qmlmaps/qml/qmlmaps/main.qml b/examples/qmlmaps/qml/qmlmaps/main.qml index 0f8d618c..40f05e80 100644 --- a/examples/qmlmaps/qml/qmlmaps/main.qml +++ b/examples/qmlmaps/qml/qmlmaps/main.qml @@ -27,59 +27,63 @@ Item { width: 800 height: 500 visible: true + //title: "Noise levels from construction site" Item { id: dataView - width: parent.width - shadowToggle.width - height: parent.height - anchors.right: parent.right; + width: parent.width + height: parent.height - shadowToggle.height + anchors.bottom: parent.bottom Image { id: testimage - source: "qrc:/images/image.jpg" + source: "qrc:/images/floorplan.jpg" + visible: false } DataItem { id: testitem1 - label: "Test" - value: 200 - position: "100.0, 200.0" + label: "dB" + value: 76 + position: "95.0, 490.0" } DataItem { id: testitem2 - label: "Test2" - value: 300 - position: "200.0, 200.0" + label: "dB" + value: 88 + position: "185.0, 105.0" } DataItem { id: testitem3 - label: "Test3" - value: 400 - position: "100.0, 100.0" + label: "dB" + value: 85 + position: "700.0, 465.0" } DataItem { id: testitem4 - label: "Test4" - value: 600 - position: "200.0, 100.0" + label: "dB" + value: 92 + position: "505.0, 225.0" } Maps3D { id: testmap width: dataView.width height: dataView.height + fontSize: 300.0 Component.onCompleted: { console.log("testmap complete"); console.log(testimage); console.log(testimage.sourceSize); + setBarSpecs(Qt.vector3d(10.0, 10.0, 10.0)); setAreaSpecs(Qt.rect(0, 0, testimage.sourceSize.width, testimage.sourceSize.height), testimage); //setImage(testimage); - setImage(":/images/image.jpg"); + setImage(":/images/floorplan.jpg"); shadowQuality = Maps3D.ShadowNone selectionMode = Maps3D.ModeBar - labelTransparency = Maps3D.TransparencyFromTheme + labelTransparency = Maps3D.TransparencyNoBackground//.TransparencyFromTheme addDataItem(testitem1); addDataItem(testitem2); addDataItem(testitem3); @@ -97,8 +101,8 @@ Item { color: "#FFFFFF" x: 0 y: 0 - width: 160 - height: 80 + width: parent.width + height: 60 TextArea { id: buttonText diff --git a/examples/qmlmaps/qmlmaps.qrc b/examples/qmlmaps/qmlmaps.qrc index fe17bae3..8eda36f6 100644 --- a/examples/qmlmaps/qmlmaps.qrc +++ b/examples/qmlmaps/qmlmaps.qrc @@ -1,5 +1,5 @@ <RCC> <qresource prefix="/images"> - <file>image.jpg</file> + <file>floorplan.jpg</file> </qresource> </RCC> |