summaryrefslogtreecommitdiffstats
path: root/tests/qmlchartproperties/qml/qmlchartproperties/HorizontalPercentBarChart.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/qmlchartproperties/qml/qmlchartproperties/HorizontalPercentBarChart.qml')
-rw-r--r--tests/qmlchartproperties/qml/qmlchartproperties/HorizontalPercentBarChart.qml15
1 files changed, 14 insertions, 1 deletions
diff --git a/tests/qmlchartproperties/qml/qmlchartproperties/HorizontalPercentBarChart.qml b/tests/qmlchartproperties/qml/qmlchartproperties/HorizontalPercentBarChart.qml
index 2ea99639..70324888 100644
--- a/tests/qmlchartproperties/qml/qmlchartproperties/HorizontalPercentBarChart.qml
+++ b/tests/qmlchartproperties/qml/qmlchartproperties/HorizontalPercentBarChart.qml
@@ -19,7 +19,7 @@
****************************************************************************/
import QtQuick 1.0
-import QtCommercial.Chart 1.1
+import QtCommercial.Chart 1.4
ChartView {
title: "Percent bar series"
@@ -61,5 +61,18 @@ ChartView {
+ " " + status + " " + index);
onLabelsVisibleChanged: console.log("horizontalPercentBarSeries.onLabelsVisibleChanged: " + series.labelsVisible);
onCountChanged: console.log("horizontalPercentBarSeries.onCountChanged: " + count);
+ onLabelsFormatChanged: console.log(
+ "horizontalPercentBarSeries.onLabelsFormatChanged: "
+ + format);
+ onLabelsPositionChanged: console.log(
+ "horizontalPercentBarSeries.onLabelsPositionChanged: "
+ + series.labelsPosition);
+
+ function changeLabelsPosition() {
+ if (labelsPosition === BarSeries.LabelsCenter)
+ labelsPosition = BarSeries.LabelsInsideEnd;
+ else
+ labelsPosition = BarSeries.LabelsCenter;
+ }
}
}