summaryrefslogtreecommitdiffstats
path: root/examples/qmlbars/qml
diff options
context:
space:
mode:
authorTomi Korpipää <tomi.korpipaa@digia.com>2014-01-24 08:26:09 +0200
committerTomi Korpipää <tomi.korpipaa@digia.com>2014-01-24 08:27:55 +0200
commit8802cf50ef296ce8cc56a2ba97fa237237f62d15 (patch)
treefafd0f2fb8a99b13ccfb85128f547668c9240c31 /examples/qmlbars/qml
parentf5a67847b72cf372f076657405769b024d5f6756 (diff)
Multiseries bars uniform scaling support added
Task-number: QTRD-2805 Change-Id: I7172662b2bed0a222ceb7560718450bcabd2879d Reviewed-by: Miikka Heikkinen <miikka.heikkinen@digia.com>
Diffstat (limited to 'examples/qmlbars/qml')
-rw-r--r--examples/qmlbars/qml/qmlbars/main.qml16
1 files changed, 8 insertions, 8 deletions
diff --git a/examples/qmlbars/qml/qmlbars/main.qml b/examples/qmlbars/qml/qmlbars/main.qml
index d5f7fd34..faa10c5f 100644
--- a/examples/qmlbars/qml/qmlbars/main.qml
+++ b/examples/qmlbars/qml/qmlbars/main.qml
@@ -76,7 +76,7 @@ Item {
anchors.bottom: mainview.bottom
Bars3D {
- id: testGraph
+ id: barGraph
width: dataView.width
height: dataView.height
shadowQuality: AbstractGraph3D.ShadowQualityMedium
@@ -189,7 +189,7 @@ Item {
clip: true
//! [1]
onClicked: {
- if (testGraph.rowAxis.max !== 6) {
+ if (barGraph.rowAxis.max !== 6) {
text = "Show 2010 - 2012"
modelProxy.autoRowCategories = true
secondaryProxy.autoRowCategories = true
@@ -213,11 +213,11 @@ Item {
text: "Hide Shadows"
clip: true
onClicked: {
- if (testGraph.shadowQuality == AbstractGraph3D.ShadowQualityNone) {
- testGraph.shadowQuality = AbstractGraph3D.ShadowQualityMedium;
+ if (barGraph.shadowQuality == AbstractGraph3D.ShadowQualityNone) {
+ barGraph.shadowQuality = AbstractGraph3D.ShadowQualityMedium;
text = "Hide Shadows"
} else {
- testGraph.shadowQuality = AbstractGraph3D.ShadowQualityNone;
+ barGraph.shadowQuality = AbstractGraph3D.ShadowQualityNone;
text = "Show Shadows"
}
}
@@ -233,17 +233,17 @@ Item {
onClicked: {
if (!secondarySeries.visible) {
text = "Show Both"
- testGraph.valueAxis = graphAxes.expenses
+ barGraph.valueAxis = graphAxes.expenses
barSeries.visible = false
secondarySeries.visible = true
} else if (!barSeries.visible){
barSeries.visible = true
text = "Show Income"
- testGraph.valueAxis = graphAxes.income
+ barGraph.valueAxis = graphAxes.income
} else {
secondarySeries.visible = false
text = "Show Expenses"
- testGraph.valueAxis = graphAxes.income
+ barGraph.valueAxis = graphAxes.income
}
}
//! [0]