@@ -22,6 +22,65 | |||
|
22 | 22 | #include "qvaluesaxis_p.h" |
|
23 | 23 | |
|
24 | 24 | QTCOMMERCIALCHART_BEGIN_NAMESPACE |
|
25 | /*! | |
|
26 | \class QValuesAxis | |
|
27 | \brief The QValuesAxis class is used for manipulating chart's axis. | |
|
28 | \mainclass | |
|
29 | ||
|
30 | Axis can be setup to show axis line with tick marks, grid lines and shades. | |
|
31 | */ | |
|
32 | ||
|
33 | /*! | |
|
34 | \qmlclass Axis QValuesAxis | |
|
35 | \brief The Axis element is used for manipulating chart's axes | |
|
36 | ||
|
37 | Axis can be setup to show axis line with tick marks, grid lines and shades. | |
|
38 | ||
|
39 | To access Axes you can use ChartView API. For example: | |
|
40 | \code | |
|
41 | ChartView { | |
|
42 | axisX.min: 0 | |
|
43 | axisX.max: 3 | |
|
44 | axisX.ticksCount: 4 | |
|
45 | axisY.min: 0 | |
|
46 | axisY.max: 4 | |
|
47 | // Add a few series... | |
|
48 | } | |
|
49 | \endcode | |
|
50 | */ | |
|
51 | ||
|
52 | /*! | |
|
53 | \property QValuesAxis::min | |
|
54 | Defines the minimum value on the axis. | |
|
55 | */ | |
|
56 | /*! | |
|
57 | \qmlproperty real Axis::min | |
|
58 | Defines the minimum value on the axis. | |
|
59 | */ | |
|
60 | ||
|
61 | /*! | |
|
62 | \property QValuesAxis::max | |
|
63 | Defines the maximum value on the axis. | |
|
64 | */ | |
|
65 | /*! | |
|
66 | \qmlproperty real Axis::max | |
|
67 | Defines the maximum value on the axis. | |
|
68 | */ | |
|
69 | ||
|
70 | /*! | |
|
71 | \fn void QValuesAxis::minChanged(qreal min) | |
|
72 | Axis emits signal when \a min of axis has changed. | |
|
73 | */ | |
|
74 | ||
|
75 | /*! | |
|
76 | \fn void QValuesAxis::maxChanged(qreal max) | |
|
77 | Axis emits signal when \a max of axis has changed. | |
|
78 | */ | |
|
79 | ||
|
80 | /*! | |
|
81 | \fn void QValuesAxis::rangeChanged(qreal min, qreal max) | |
|
82 | Axis emits signal when \a min or \a max of axis has changed. | |
|
83 | */ | |
|
25 | 84 | |
|
26 | 85 | QValuesAxis::QValuesAxis(QObject *parent) : |
|
27 | 86 | QAbstractAxis(*new QValuesAxisPrivate(this),parent) |
General Comments 0
You need to be logged in to leave comments.
Login now