diff options
author | Tomi Korpipää <tomi.korpipaa@digia.com> | 2013-06-14 08:44:34 +0300 |
---|---|---|
committer | Tomi Korpipää <tomi.korpipaa@digia.com> | 2013-06-14 08:46:21 +0300 |
commit | d7ebab1657fe8f1b0992a081ffd4047aad61a8e3 (patch) | |
tree | 1d5b498380aca2159631f99e48c3191d9dd4b1df /examples/qmlbarchart/qml | |
parent | c6df8c0784c49ddba36ced3c4f3de4af0dc836a9 (diff) |
Renamed property correctly
Change-Id: I22e924a4f4028f116a00297158b36c0f08a44e96
Change-Id: I22e924a4f4028f116a00297158b36c0f08a44e96
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@digia.com>
Diffstat (limited to 'examples/qmlbarchart/qml')
-rw-r--r-- | examples/qmlbarchart/qml/qmlbarchart/main.qml | 113 |
1 files changed, 53 insertions, 60 deletions
diff --git a/examples/qmlbarchart/qml/qmlbarchart/main.qml b/examples/qmlbarchart/qml/qmlbarchart/main.qml index 8007d66f..526b0262 100644 --- a/examples/qmlbarchart/qml/qmlbarchart/main.qml +++ b/examples/qmlbarchart/qml/qmlbarchart/main.qml @@ -29,76 +29,69 @@ Item { height: 480 visible: true + DataItem { + id: testitem1 + label: "Test" + value: 10 + } + DataItem { + id: testitem2 + label: "Test2" + value: -10 + } + DataItem { + id: testitem3 + label: "Test3" + value: 5 + } + + DataItem { + id: testitem4 + label: "Test4" + value: -7 + } + DataItem { + id: testitem5 + label: "Test5" + value: 8 + } + DataItem { + id: testitem6 + label: "Test6" + value: 1 + } + + DataRow { + id: testrow1 + function addData() { + testrow1.addItem(testitem1); + testrow1.addItem(testitem2); + testrow1.addItem(testitem3); + testrow1.addItem(testitem4); + testrow1.addItem(testitem5); + testrow1.addItem(testitem6); + } + } +/* + ListModel { + id: testdata1 + ListElement{ column1: testitem1 ; column2: testitem2 ; column3: testitem3 } + ListElement{ column1: testitem4 ; column2: testitem6 ; column3: testitem6 } + } +*/ Bars3D { id: testchart width: mainview.width height: mainview.height - DataItem { - id: testitem - label: "Test" - value: 10 - } - DataItem { - id: testitem2 - label: "Test2" - value: -10 - } - DataItem { - id: testitem3 - label: "Test3" - value: 5 - } - - DataItem { - id: testitem4 - label: "Test4" - value: -7 - } - DataItem { - id: testitem5 - label: "Test5" - value: 8 - } - DataItem { - id: testitem6 - label: "Test6" - value: 1 - } - - DataRow { - id: testrow1 - function addData() { - testrow1.addItem(testitem); - testrow1.addItem(testitem2); - testrow1.addItem(testitem3); - testrow1.addItem(testitem4); - testrow1.addItem(testitem5); - testrow1.addItem(testitem6); - } - } - - //visible: true - //x: mainview.x + mainview.width - //y: mainview.y + //data: testdata1 - gridVisible: false - shadowQuality: Bars3D.ShadowNone + gridVisible: true + shadowQuality: Bars3D.ShadowLow selectionMode: Bars3D.ModeNone labelTransparency: Bars3D.TransparencyNone function setUpBars3D() { - /*console.log(parent) - console.log(container.x) - console.log(container.y) - console.log(Window.x) - console.log(Window.y) - console.log(Screen.desktopAvailableHeight) - console.log(Screen.desktopAvailableWidth) - console.log(mainview.x) - console.log(mainview.y) - console.log(x) - console.log(y)*/ testchart.setupSampleSpace(6, 1); testchart.addDataRow(testrow1); } |