@@ -32,6 +32,8 QTCOMMERCIALCHART_BEGIN_NAMESPACE | |||
|
32 | 32 | \brief The QDateTimeAxis class is used for manipulating chart's axis. |
|
33 | 33 | \mainclass |
|
34 | 34 | |
|
35 | Note that any date before 4800 BCE or after about 1.4 million CE may not be accurately stored. | |
|
36 | ||
|
35 | 37 | ValuesAxis can be setup to show axis line with tick marks, grid lines and shades. |
|
36 | 38 | Values of axis are drawn to position of ticks |
|
37 | 39 | */ |
@@ -40,20 +40,20 private slots: | |||
|
40 | 40 | void max_raw(); |
|
41 | 41 | void max_data(); |
|
42 | 42 | void max(); |
|
43 |
|
|
|
44 |
|
|
|
43 | void max_animation_data(); | |
|
44 | void max_animation(); | |
|
45 | 45 | void min_raw_data(); |
|
46 | 46 | void min_raw(); |
|
47 | 47 | void min_data(); |
|
48 | 48 | void min(); |
|
49 |
|
|
|
50 |
|
|
|
49 | void min_animation_data(); | |
|
50 | void min_animation(); | |
|
51 | 51 | void range_raw_data(); |
|
52 | 52 | void range_raw(); |
|
53 | 53 | void range_data(); |
|
54 | 54 | void range(); |
|
55 |
|
|
|
56 |
|
|
|
55 | void range_animation_data(); | |
|
56 | void range_animation(); | |
|
57 | 57 | |
|
58 | 58 | private: |
|
59 | 59 | QDateTimeAxis *m_dateTimeAxisX; |
@@ -107,9 +107,6 void tst_QDateTimeAxis::qdatetimeaxis_data() | |||
|
107 | 107 | void tst_QDateTimeAxis::qdatetimeaxis() |
|
108 | 108 | { |
|
109 | 109 | // qabstractaxis(); |
|
110 | ||
|
111 | // QVERIFY(m_datetimeaxis->max().toMSecsSinceEpoch() == 0); | |
|
112 | // QVERIFY(m_datetimeaxis->min().toMSecsSinceEpoch() == 0); | |
|
113 | 110 | QCOMPARE(m_dateTimeAxisX->type(), QAbstractAxis::AxisTypeDateTime); |
|
114 | 111 | |
|
115 | 112 | m_view->show(); |
@@ -141,7 +138,6 void tst_QDateTimeAxis::max_raw() | |||
|
141 | 138 | |
|
142 | 139 | m_dateTimeAxisX->setMax(max); |
|
143 | 140 | |
|
144 | ||
|
145 | 141 | if (valid) { |
|
146 | 142 | QVERIFY2(m_dateTimeAxisX->max() == max, "Not equal"); |
|
147 | 143 | QCOMPARE(spy0.count(), 1); |
@@ -168,16 +164,16 void tst_QDateTimeAxis::max() | |||
|
168 | 164 | max_raw(); |
|
169 | 165 | } |
|
170 | 166 | |
|
171 |
|
|
|
172 | //{ | |
|
173 |
|
|
|
174 | //} | |
|
167 | void tst_QDateTimeAxis::max_animation_data() | |
|
168 | { | |
|
169 | max_data(); | |
|
170 | } | |
|
175 | 171 | |
|
176 |
|
|
|
177 | //{ | |
|
178 |
|
|
|
179 |
|
|
|
180 | //} | |
|
172 | void tst_QDateTimeAxis::max_animation() | |
|
173 | { | |
|
174 | m_chart->setAnimationOptions(QChart::GridAxisAnimations); | |
|
175 | max(); | |
|
176 | } | |
|
181 | 177 | |
|
182 | 178 | void tst_QDateTimeAxis::min_raw_data() |
|
183 | 179 | { |
@@ -227,16 +223,16 void tst_QDateTimeAxis::min() | |||
|
227 | 223 | min_raw(); |
|
228 | 224 | } |
|
229 | 225 | |
|
230 |
|
|
|
231 | //{ | |
|
232 |
|
|
|
233 | //} | |
|
226 | void tst_QDateTimeAxis::min_animation_data() | |
|
227 | { | |
|
228 | min_data(); | |
|
229 | } | |
|
234 | 230 | |
|
235 |
|
|
|
236 | //{ | |
|
237 |
|
|
|
238 |
|
|
|
239 | //} | |
|
231 | void tst_QDateTimeAxis::min_animation() | |
|
232 | { | |
|
233 | m_chart->setAnimationOptions(QChart::GridAxisAnimations); | |
|
234 | min(); | |
|
235 | } | |
|
240 | 236 | |
|
241 | 237 | void tst_QDateTimeAxis::range_raw_data() |
|
242 | 238 | { |
@@ -301,16 +297,16 void tst_QDateTimeAxis::range() | |||
|
301 | 297 | range_raw(); |
|
302 | 298 | } |
|
303 | 299 | |
|
304 |
|
|
|
305 | //{ | |
|
306 |
|
|
|
307 | //} | |
|
300 | void tst_QDateTimeAxis::range_animation_data() | |
|
301 | { | |
|
302 | range_data(); | |
|
303 | } | |
|
308 | 304 | |
|
309 |
|
|
|
310 | //{ | |
|
311 |
|
|
|
312 |
|
|
|
313 | //} | |
|
305 | void tst_QDateTimeAxis::range_animation() | |
|
306 | { | |
|
307 | m_chart->setAnimationOptions(QChart::GridAxisAnimations); | |
|
308 | range(); | |
|
309 | } | |
|
314 | 310 | |
|
315 | 311 | QTEST_MAIN(tst_QDateTimeAxis) |
|
316 | 312 | #include "tst_qdatetimeaxis.moc" |
General Comments 0
You need to be logged in to leave comments.
Login now