summaryrefslogtreecommitdiffstats
path: root/examples/qmlbarchart
diff options
context:
space:
mode:
authorTomi Korpipää <tomi.korpipaa@digia.com>2013-06-19 08:37:09 +0300
committerTomi Korpipää <tomi.korpipaa@digia.com>2013-06-19 08:47:46 +0300
commit4cf975ad3e8f2bb6785029ffdae1b41841707692 (patch)
treeb4e40ab1203c3316b74e6653b5138a91d7f07720 /examples/qmlbarchart
parent3f5ef027cbe49006ff34024226748ee6a5085c34 (diff)
QML2 shadows fixed again
Hack solution, may cause trouble later on. Should try to find a better way to fix this. Change-Id: I440252419a451fd26932c6d851f95259a5c60e24 Change-Id: I440252419a451fd26932c6d851f95259a5c60e24 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@digia.com> Reviewed-by: Pasi Keränen <pasi.keranen@digia.com>
Diffstat (limited to 'examples/qmlbarchart')
-rw-r--r--examples/qmlbarchart/qml/qmlbarchart/main.qml33
1 files changed, 27 insertions, 6 deletions
diff --git a/examples/qmlbarchart/qml/qmlbarchart/main.qml b/examples/qmlbarchart/qml/qmlbarchart/main.qml
index ff6721f2..9c19aeb7 100644
--- a/examples/qmlbarchart/qml/qmlbarchart/main.qml
+++ b/examples/qmlbarchart/qml/qmlbarchart/main.qml
@@ -32,8 +32,8 @@ Item {
Item {
id: dataView
- width: 480
- height: 480
+ width: parent.width - shadowToggle.width
+ height: parent.height
anchors.right: parent.right;
DataItem {
id: testitem1
@@ -65,10 +65,27 @@ Item {
label: "Test6"
value: 1
}
+ DataItem {
+ id: testitem7
+ label: "Test7"
+ value: 3
+ }
+ DataItem {
+ id: testitem8
+ label: "Test8"
+ value: -2
+ }
DataRow {
id: testrow1
}
+ DataRow {
+ id: testrow2
+ }
+
+ DataSet {
+ id: testset1
+ }
// ListModel {
// id: testdata1
@@ -100,11 +117,15 @@ Item {
testrow1.addItem(testitem2);
testrow1.addItem(testitem3);
testrow1.addItem(testitem4);
- testrow1.addItem(testitem5);
- testrow1.addItem(testitem6);
+ testrow2.addItem(testitem5);
+ testrow2.addItem(testitem6);
+ testrow2.addItem(testitem7);
+ testrow2.addItem(testitem8);
+ testset1.addRow(testrow1);
+ testset1.addRow(testrow2)
- testchart.setupSampleSpace(6, 1);
- testchart.addDataRow(testrow1);
+ testchart.setupSampleSpace(4, 2);
+ testchart.addDataSet(testset1);
}
Rectangle {