summaryrefslogtreecommitdiffstats
path: root/examples/qmlbarchart/qml
diff options
context:
space:
mode:
authorTomi Korpipää <tomi.korpipaa@digia.com>2013-06-24 09:26:00 +0300
committerTomi Korpipää <tomi.korpipaa@digia.com>2013-06-24 10:55:43 +0300
commit8af1198998123f11f7e343685389d7ba76de24d5 (patch)
tree1fe774c382372b102516d968fbeb5efaf29957f7 /examples/qmlbarchart/qml
parentfb7efe0169401e49a8bbf8e4b2b495d98f26046a (diff)
Crash fix to QML bars exit
Still possible to get crashing if datasets, rows and items are created in reverse order. Needs to be documented. Change-Id: Ia35b54eb9652ba031da35dd37f9ef9cae9aca04d Change-Id: Ia35b54eb9652ba031da35dd37f9ef9cae9aca04d Reviewed-by: Miikka Heikkinen <miikka.heikkinen@digia.com>
Diffstat (limited to 'examples/qmlbarchart/qml')
-rw-r--r--examples/qmlbarchart/qml/qmlbarchart/main.qml25
1 files changed, 13 insertions, 12 deletions
diff --git a/examples/qmlbarchart/qml/qmlbarchart/main.qml b/examples/qmlbarchart/qml/qmlbarchart/main.qml
index 91c9f72a..28b3326d 100644
--- a/examples/qmlbarchart/qml/qmlbarchart/main.qml
+++ b/examples/qmlbarchart/qml/qmlbarchart/main.qml
@@ -35,6 +35,18 @@ Item {
width: parent.width - shadowToggle.width
height: parent.height
anchors.right: parent.right;
+
+ DataSet {
+ id: testset1
+ }
+
+ DataRow {
+ id: testrow1
+ }
+ DataRow {
+ id: testrow2
+ }
+
DataItem {
id: testitem1
label: "Test"
@@ -76,17 +88,6 @@ Item {
value: 10
}
- DataRow {
- id: testrow1
- }
- DataRow {
- id: testrow2
- }
-
- DataSet {
- id: testset1
- }
-
// ListModel {
// id: testdata1
// ListElement{ column1: "test" ; column2: "test" ; column3: "test" }
@@ -106,7 +107,7 @@ Item {
gridVisible: true
shadowQuality: Bars3D.ShadowNone
- selectionMode: Bars3D.ModeNone
+ selectionMode: Bars3D.ModeBar
labelTransparency: Bars3D.TransparencyNone
}
}