diff options
author | Kari Oikarinen <kari.oikarinen@qt.io> | 2017-12-21 09:35:19 +0200 |
---|---|---|
committer | Kari Oikarinen <kari.oikarinen@qt.io> | 2017-12-21 11:21:35 +0000 |
commit | 146e375210f406e62fd952d150bc1bcd926d60cb (patch) | |
tree | 291b363d277d8d57c0450cace788ea97e8431818 /tests/manual/qmlchartproperties/qml/qmlchartproperties/BarEditor.qml | |
parent | 6b3a1a975e1f0237e78c3d329411c15f00577b01 (diff) |
Add labelsPrecision property to bar charts
Allow choosing the number of significant digits in the value labels for the
bars. Before this this has been hardcoded to 6, so the default value stays as 6
for backward compatibility.
Task-number: QTBUG-64370
Change-Id: I022bdad21aca7a7750ed46181b4ec97726bd9dc5
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Diffstat (limited to 'tests/manual/qmlchartproperties/qml/qmlchartproperties/BarEditor.qml')
-rw-r--r-- | tests/manual/qmlchartproperties/qml/qmlchartproperties/BarEditor.qml | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/manual/qmlchartproperties/qml/qmlchartproperties/BarEditor.qml b/tests/manual/qmlchartproperties/qml/qmlchartproperties/BarEditor.qml index 14fd991c..8292b5c6 100644 --- a/tests/manual/qmlchartproperties/qml/qmlchartproperties/BarEditor.qml +++ b/tests/manual/qmlchartproperties/qml/qmlchartproperties/BarEditor.qml @@ -205,6 +205,16 @@ Row { text: "labels angle -" onClicked: series.labelsAngle = series.labelsAngle - 5; } + Button { + text: "labels precision" + onClicked: { + if (series.labelsPrecision == 2) + series.labelsPrecision = 4; + else + series.labelsPrecision = 2; + } + } + FontEditor { id: fontEditor fontDescription: "label" |