@@ -142,6 +142,19 QTCOMMERCIALCHART_BEGIN_NAMESPACE | |||||
142 | */ |
|
142 | */ | |
143 |
|
143 | |||
144 | /*! |
|
144 | /*! | |
|
145 | \fn void QAreaSeries::hovered(const QPointF &point, bool state) | |||
|
146 | This signal is emitted when user has hovered over or away from the series. \a point shows the origin (coordinate) | |||
|
147 | of the hover event. \a state is true when user has hovered over the series and false when hover has moved away from | |||
|
148 | the series. | |||
|
149 | */ | |||
|
150 | /*! | |||
|
151 | \qmlsignal AreaSeries::onHovered(point point, bool state) | |||
|
152 | This signal is emitted when user has hovered over or away from the series. \a point shows the origin (coordinate) | |||
|
153 | of the hover event. \a state is true when user has hovered over the series and false when hover has moved away from | |||
|
154 | the series. | |||
|
155 | */ | |||
|
156 | ||||
|
157 | /*! | |||
145 | \fn void QAreaSeries::selected() |
|
158 | \fn void QAreaSeries::selected() | |
146 | The signal is emitted if the user selects/deselects the XY series. The logic for maintaining selections should be |
|
159 | The signal is emitted if the user selects/deselects the XY series. The logic for maintaining selections should be | |
147 | implemented by the user of QAreaSeries API. |
|
160 | implemented by the user of QAreaSeries API. |
@@ -117,6 +117,19 QTCOMMERCIALCHART_BEGIN_NAMESPACE | |||||
117 | */ |
|
117 | */ | |
118 |
|
118 | |||
119 | /*! |
|
119 | /*! | |
|
120 | \fn void QXYSeries::hovered(const QPointF &point, bool state) | |||
|
121 | This signal is emitted when user has hovered over or away from the series. \a point shows the origin (coordinate) | |||
|
122 | of the hover event. \a state is true when user has hovered over the series and false when hover has moved away from | |||
|
123 | the series. | |||
|
124 | */ | |||
|
125 | /*! | |||
|
126 | \qmlsignal XYSeries::onHovered(point point, bool state) | |||
|
127 | This signal is emitted when user has hovered over or away from the series. \a point shows the origin (coordinate) | |||
|
128 | of the hover event. \a state is true when user has hovered over the series and false when hover has moved away from | |||
|
129 | the series. | |||
|
130 | */ | |||
|
131 | ||||
|
132 | /*! | |||
120 | \fn void QXYSeries::pointReplaced(int index) |
|
133 | \fn void QXYSeries::pointReplaced(int index) | |
121 | Signal is emitted when a point has been replaced at \a index. |
|
134 | Signal is emitted when a point has been replaced at \a index. | |
122 | \sa replace() |
|
135 | \sa replace() |
@@ -31,7 +31,7 ChartView { | |||||
31 | AreaSeries { |
|
31 | AreaSeries { | |
32 | id: areaSeries |
|
32 | id: areaSeries | |
33 | name: "area 1" |
|
33 | name: "area 1" | |
34 |
|
34 | |||
35 | upperSeries: LineSeries { |
|
35 | upperSeries: LineSeries { | |
36 | XYPoint { x: 0; y: 1 } |
|
36 | XYPoint { x: 0; y: 1 } | |
37 | XYPoint { x: 1; y: 1 } |
|
37 | XYPoint { x: 1; y: 1 } | |
@@ -70,6 +70,7 ChartView { | |||||
70 | onBorderColorChanged: console.log(name + ".onBorderColorChanged: " + borderColor); |
|
70 | onBorderColorChanged: console.log(name + ".onBorderColorChanged: " + borderColor); | |
71 | onBorderWidthChanged: console.log(name + ".onBorderChanged: " + borderWidth); |
|
71 | onBorderWidthChanged: console.log(name + ".onBorderChanged: " + borderWidth); | |
72 | // onCountChanged: console.log(name + ".onCountChanged: " + count); |
|
72 | // onCountChanged: console.log(name + ".onCountChanged: " + count); | |
|
73 | onHovered: console.log("lineSeries.onHovered:" + point.x + "," + point.y + " " + state); | |||
73 |
|
|
74 | } | |
74 |
|
75 | |||
75 | AreaSeries { |
|
76 | AreaSeries { |
@@ -51,6 +51,7 ChartView { | |||||
51 | onStyleChanged: console.log("lineSeries.onStyleChanged: " + style); |
|
51 | onStyleChanged: console.log("lineSeries.onStyleChanged: " + style); | |
52 | onCapStyleChanged: console.log("lineSeries.onCapStyleChanged: " + capStyle); |
|
52 | onCapStyleChanged: console.log("lineSeries.onCapStyleChanged: " + capStyle); | |
53 | onCountChanged: console.log("lineSeries.onCountChanged: " + count); |
|
53 | onCountChanged: console.log("lineSeries.onCountChanged: " + count); | |
|
54 | onHovered: console.log("lineSeries.onHovered:" + point.x + "," + point.y + " " + state); | |||
54 | } |
|
55 | } | |
55 |
|
56 | |||
56 | LineSeries { |
|
57 | LineSeries { |
General Comments 0
You need to be logged in to leave comments.
Login now