From c381af48c9b3e1499ee57c602872b8bc92f061f3 2012-06-21 12:03:36 From: Tero Ahola Date: 2012-06-21 12:03:36 Subject: [PATCH] Document fixes to QML BarSet --- diff --git a/src/barchart/qbarset.cpp b/src/barchart/qbarset.cpp index 51a2f84..5269e51 100644 --- a/src/barchart/qbarset.cpp +++ b/src/barchart/qbarset.cpp @@ -222,6 +222,22 @@ QTCOMMERCIALCHART_BEGIN_NAMESPACE */ /*! + \qmlproperty int BarSet::count + The count of values on the barset +*/ + +/*! + \qmlproperty QVariantList BarSet::values + The values of the barset. You can set either a list of reals or a list of points as values. If you set a list of + reals as values, the values are automatically completed to points by using the index of a value as it's + x-coordinate. For example: + \code + myBarSet1.values = [0, 5, 1, 5]; + myBarSet2.values = [Qt.point(0, 1), Qt.point(1, 5), Qt.point(2.2, 4.3)]; + \endcode +*/ + +/*! Constructs QBarSet with a label of \a label and with parent of \a parent */ QBarSet::QBarSet(const QString label, QObject *parent) diff --git a/tests/qmlchartproperties/qml/qmlchartproperties/ChartEditor.qml b/tests/qmlchartproperties/qml/qmlchartproperties/ChartEditor.qml index 26ddf5c..2e3d8d1 100644 --- a/tests/qmlchartproperties/qml/qmlchartproperties/ChartEditor.qml +++ b/tests/qmlchartproperties/qml/qmlchartproperties/ChartEditor.qml @@ -88,6 +88,7 @@ Flow { text: "scroll down" onClicked: series.scrollDown(10); } + Button { text: "legend visible" onClicked: series.legend.visible = !series.legend.visible; @@ -120,6 +121,7 @@ Flow { text: "legend right" onClicked: series.legend.alignment ^= Qt.AlignRight; } + Button { text: "axis X visible" onClicked: series.axisX.visible = !series.axisX.visible; @@ -192,6 +194,7 @@ Flow { text: "axis X nice nmb" onClicked: series.axisX.niceNumbersEnabled = !series.axisX.niceNumbersEnabled; } + Button { text: "axis Y visible" onClicked: series.axisY.visible = !series.axisY.visible;