diff options
author | Miikka Heikkinen <miikka.heikkinen@digia.com> | 2013-10-11 08:38:57 +0300 |
---|---|---|
committer | Miikka Heikkinen <miikka.heikkinen@digia.com> | 2013-10-11 09:10:55 +0300 |
commit | a4e9246ab8ac23b40984c65e55f2aa2184fc28f8 (patch) | |
tree | 2c8f5762b933ea74f3e81c860fadc30ee7813cd8 /examples/qmlbars | |
parent | d52b1938dcfdb3a111ce1e0db1510ef87996a0be (diff) |
Fix enum usage in qml examples
+remove some qdebugs
Change-Id: Icf4e152958c4038d8586ecd2d07c1204f8ca635b
Reviewed-by: Tomi Korpipää <tomi.korpipaa@digia.com>
Diffstat (limited to 'examples/qmlbars')
-rw-r--r-- | examples/qmlbars/qml/qmlbars/main.qml | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/examples/qmlbars/qml/qmlbars/main.qml b/examples/qmlbars/qml/qmlbars/main.qml index 9f3a3484..6f44fe63 100644 --- a/examples/qmlbars/qml/qmlbars/main.qml +++ b/examples/qmlbars/qml/qmlbars/main.qml @@ -45,16 +45,16 @@ Item { id: testGraph width: dataView.width height: dataView.height - shadowQuality: Bars3D.ShadowQualityMedium - selectionMode: Bars3D.SelectionModeItem + shadowQuality: AbstractGraph3D.ShadowQualityMedium + selectionMode: AbstractGraph3D.SelectionModeItem font.pointSize: 35 - theme: Bars3D.ThemeRetro - labelStyle: Bars3D.LabelStyleFromTheme + theme: AbstractGraph3D.ThemeRetro + labelStyle: AbstractGraph3D.LabelStyleFromTheme dataProxy: graphData.proxy barThickness: 0.5 barSpacing: Qt.size(0.5, 0.5) barSpacingRelative: false - scene.activeCamera.cameraPreset: Bars3D.CameraPresetRight + scene.activeCamera.cameraPreset: AbstractGraph3D.CameraPresetRight columnAxis: graphAxes.column valueAxis: graphAxes.expenses itemLabelFormat: "@valueTitle for @colLabel, @rowLabel: @valueLabel" @@ -108,11 +108,11 @@ Item { height: 60 text: "Hide Shadows" onClicked: { - if (testGraph.shadowQuality == Bars3D.ShadowQualityNone) { - testGraph.shadowQuality = Bars3D.ShadowQualityMedium; + if (testGraph.shadowQuality == AbstractGraph3D.ShadowQualityNone) { + testGraph.shadowQuality = AbstractGraph3D.ShadowQualityMedium; text = "Hide Shadows" } else { - testGraph.shadowQuality = Bars3D.ShadowQualityNone; + testGraph.shadowQuality = AbstractGraph3D.ShadowQualityNone; text = "Show Shadows" } } |