##// END OF EJS Templates
Document fixes to QML BarSet
Tero Ahola -
r1523:c381af48c9b3
parent child
Show More
@@ -222,6 +222,22 QTCOMMERCIALCHART_BEGIN_NAMESPACE
222 222 */
223 223
224 224 /*!
225 \qmlproperty int BarSet::count
226 The count of values on the barset
227 */
228
229 /*!
230 \qmlproperty QVariantList BarSet::values
231 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
232 reals as values, the values are automatically completed to points by using the index of a value as it's
233 x-coordinate. For example:
234 \code
235 myBarSet1.values = [0, 5, 1, 5];
236 myBarSet2.values = [Qt.point(0, 1), Qt.point(1, 5), Qt.point(2.2, 4.3)];
237 \endcode
238 */
239
240 /*!
225 241 Constructs QBarSet with a label of \a label and with parent of \a parent
226 242 */
227 243 QBarSet::QBarSet(const QString label, QObject *parent)
@@ -88,6 +88,7 Flow {
88 88 text: "scroll down"
89 89 onClicked: series.scrollDown(10);
90 90 }
91
91 92 Button {
92 93 text: "legend visible"
93 94 onClicked: series.legend.visible = !series.legend.visible;
@@ -120,6 +121,7 Flow {
120 121 text: "legend right"
121 122 onClicked: series.legend.alignment ^= Qt.AlignRight;
122 123 }
124
123 125 Button {
124 126 text: "axis X visible"
125 127 onClicked: series.axisX.visible = !series.axisX.visible;
@@ -192,6 +194,7 Flow {
192 194 text: "axis X nice nmb"
193 195 onClicked: series.axisX.niceNumbersEnabled = !series.axisX.niceNumbersEnabled;
194 196 }
197
195 198 Button {
196 199 text: "axis Y visible"
197 200 onClicked: series.axisY.visible = !series.axisY.visible;
General Comments 0
You need to be logged in to leave comments. Login now