@@ -57,7 +57,7 class QAbstractSeries; | |||||
57 | class ChartTheme; |
|
57 | class ChartTheme; | |
58 | class ChartElement; |
|
58 | class ChartElement; | |
59 |
|
59 | |||
60 |
class Q |
|
60 | class Q_AUTOTEST_EXPORT QAbstractAxisPrivate : public QObject | |
61 | { |
|
61 | { | |
62 | Q_OBJECT |
|
62 | Q_OBJECT | |
63 | public: |
|
63 | public: |
@@ -50,7 +50,7 class QAbstractAxis; | |||||
50 | class ChartPresenter; |
|
50 | class ChartPresenter; | |
51 | class GLXYSeriesDataManager; |
|
51 | class GLXYSeriesDataManager; | |
52 |
|
52 | |||
53 |
class Q |
|
53 | class Q_AUTOTEST_EXPORT ChartDataSet : public QObject | |
54 | { |
|
54 | { | |
55 | Q_OBJECT |
|
55 | Q_OBJECT | |
56 | public: |
|
56 | public: |
@@ -84,11 +84,6 OTHER_FILES += doc/qtcharts.qdocconf \ | |||||
84 | doc/src/* \ |
|
84 | doc/src/* \ | |
85 | doc/images/* |
|
85 | doc/images/* | |
86 |
|
86 | |||
87 | #Define for unit tests |
|
|||
88 | CONFIG(debug, debug|release) { |
|
|||
89 | DEFINES += BUILD_PRIVATE_UNIT_TESTS |
|
|||
90 | } |
|
|||
91 |
|
||||
92 | msvc { |
|
87 | msvc { | |
93 | # Suppress "conversion from 'size_t' to 'int', possible loss of data" warnings in 64bit |
|
88 | # Suppress "conversion from 'size_t' to 'int', possible loss of data" warnings in 64bit | |
94 | # builds resulting from usage of str::sort |
|
89 | # builds resulting from usage of str::sort |
@@ -234,7 +234,7 bool AbstractDomain::detachAxis(QAbstractAxis *axis) | |||||
234 |
|
234 | |||
235 | // operators |
|
235 | // operators | |
236 |
|
236 | |||
237 |
bool Q |
|
237 | bool Q_AUTOTEST_EXPORT operator== (const AbstractDomain &domain1, const AbstractDomain &domain2) | |
238 | { |
|
238 | { | |
239 | return (qFuzzyIsNull(domain1.m_maxX - domain2.m_maxX) |
|
239 | return (qFuzzyIsNull(domain1.m_maxX - domain2.m_maxX) | |
240 | && qFuzzyIsNull(domain1.m_maxY - domain2.m_maxY) |
|
240 | && qFuzzyIsNull(domain1.m_maxY - domain2.m_maxY) | |
@@ -243,13 +243,13 bool QT_CHARTS_AUTOTEST_EXPORT operator== (const AbstractDomain &domain1, const | |||||
243 | } |
|
243 | } | |
244 |
|
244 | |||
245 |
|
245 | |||
246 |
bool Q |
|
246 | bool Q_AUTOTEST_EXPORT operator!= (const AbstractDomain &domain1, const AbstractDomain &domain2) | |
247 | { |
|
247 | { | |
248 | return !(domain1 == domain2); |
|
248 | return !(domain1 == domain2); | |
249 | } |
|
249 | } | |
250 |
|
250 | |||
251 |
|
251 | |||
252 |
QDebug Q |
|
252 | QDebug Q_AUTOTEST_EXPORT operator<<(QDebug dbg, const AbstractDomain &domain) | |
253 | { |
|
253 | { | |
254 | #ifdef QT_NO_TEXTSTREAM |
|
254 | #ifdef QT_NO_TEXTSTREAM | |
255 | Q_UNUSED(domain) |
|
255 | Q_UNUSED(domain) |
@@ -47,7 +47,7 QT_CHARTS_BEGIN_NAMESPACE | |||||
47 |
|
47 | |||
48 | class QAbstractAxis; |
|
48 | class QAbstractAxis; | |
49 |
|
49 | |||
50 |
class Q |
|
50 | class Q_AUTOTEST_EXPORT AbstractDomain: public QObject | |
51 | { |
|
51 | { | |
52 | Q_OBJECT |
|
52 | Q_OBJECT | |
53 | public: |
|
53 | public: | |
@@ -93,9 +93,9 public: | |||||
93 | void storeZoomReset(); |
|
93 | void storeZoomReset(); | |
94 | bool isZoomed() { return m_zoomed; } |
|
94 | bool isZoomed() { return m_zoomed; } | |
95 |
|
95 | |||
96 |
friend bool Q |
|
96 | friend bool Q_AUTOTEST_EXPORT operator== (const AbstractDomain &domain1, const AbstractDomain &domain2); | |
97 |
friend bool Q |
|
97 | friend bool Q_AUTOTEST_EXPORT operator!= (const AbstractDomain &domain1, const AbstractDomain &domain2); | |
98 |
friend QDebug Q |
|
98 | friend QDebug Q_AUTOTEST_EXPORT operator<<(QDebug dbg, const AbstractDomain &domain); | |
99 |
|
99 | |||
100 | virtual void zoomIn(const QRectF &rect) = 0; |
|
100 | virtual void zoomIn(const QRectF &rect) = 0; | |
101 | virtual void zoomOut(const QRectF &rect) = 0; |
|
101 | virtual void zoomOut(const QRectF &rect) = 0; |
@@ -258,7 +258,7 void LogXLogYDomain::handleHorizontalAxisBaseChanged(qreal baseX) | |||||
258 |
|
258 | |||
259 | // operators |
|
259 | // operators | |
260 |
|
260 | |||
261 |
bool Q |
|
261 | bool Q_AUTOTEST_EXPORT operator== (const LogXLogYDomain &domain1, const LogXLogYDomain &domain2) | |
262 | { |
|
262 | { | |
263 | return (qFuzzyIsNull(domain1.m_maxX - domain2.m_maxX) |
|
263 | return (qFuzzyIsNull(domain1.m_maxX - domain2.m_maxX) | |
264 | && qFuzzyIsNull(domain1.m_maxY - domain2.m_maxY) |
|
264 | && qFuzzyIsNull(domain1.m_maxY - domain2.m_maxY) | |
@@ -267,13 +267,13 bool QT_CHARTS_AUTOTEST_EXPORT operator== (const LogXLogYDomain &domain1, const | |||||
267 | } |
|
267 | } | |
268 |
|
268 | |||
269 |
|
269 | |||
270 |
bool Q |
|
270 | bool Q_AUTOTEST_EXPORT operator!= (const LogXLogYDomain &domain1, const LogXLogYDomain &domain2) | |
271 | { |
|
271 | { | |
272 | return !(domain1 == domain2); |
|
272 | return !(domain1 == domain2); | |
273 | } |
|
273 | } | |
274 |
|
274 | |||
275 |
|
275 | |||
276 |
QDebug Q |
|
276 | QDebug Q_AUTOTEST_EXPORT operator<<(QDebug dbg, const LogXLogYDomain &domain) | |
277 | { |
|
277 | { | |
278 | #ifdef QT_NO_TEXTSTREAM |
|
278 | #ifdef QT_NO_TEXTSTREAM | |
279 | Q_UNUSED(domain) |
|
279 | Q_UNUSED(domain) |
@@ -44,7 +44,7 | |||||
44 |
|
44 | |||
45 | QT_CHARTS_BEGIN_NAMESPACE |
|
45 | QT_CHARTS_BEGIN_NAMESPACE | |
46 |
|
46 | |||
47 |
class Q |
|
47 | class Q_AUTOTEST_EXPORT LogXLogYDomain: public AbstractDomain | |
48 | { |
|
48 | { | |
49 | Q_OBJECT |
|
49 | Q_OBJECT | |
50 | public: |
|
50 | public: | |
@@ -55,9 +55,9 public: | |||||
55 |
|
55 | |||
56 | void setRange(qreal minX, qreal maxX, qreal minY, qreal maxY); |
|
56 | void setRange(qreal minX, qreal maxX, qreal minY, qreal maxY); | |
57 |
|
57 | |||
58 |
friend bool Q |
|
58 | friend bool Q_AUTOTEST_EXPORT operator== (const LogXLogYDomain &domain1, const LogXLogYDomain &domain2); | |
59 |
friend bool Q |
|
59 | friend bool Q_AUTOTEST_EXPORT operator!= (const LogXLogYDomain &domain1, const LogXLogYDomain &domain2); | |
60 |
friend QDebug Q |
|
60 | friend QDebug Q_AUTOTEST_EXPORT operator<<(QDebug dbg, const LogXLogYDomain &domain); | |
61 |
|
61 | |||
62 | void zoomIn(const QRectF &rect); |
|
62 | void zoomIn(const QRectF &rect); | |
63 | void zoomOut(const QRectF &rect); |
|
63 | void zoomOut(const QRectF &rect); |
@@ -253,7 +253,7 void LogXLogYPolarDomain::handleVerticalAxisBaseChanged(qreal baseY) | |||||
253 |
|
253 | |||
254 | // operators |
|
254 | // operators | |
255 |
|
255 | |||
256 |
bool Q |
|
256 | bool Q_AUTOTEST_EXPORT operator== (const LogXLogYPolarDomain &domain1, const LogXLogYPolarDomain &domain2) | |
257 | { |
|
257 | { | |
258 | return (qFuzzyIsNull(domain1.m_maxX - domain2.m_maxX) |
|
258 | return (qFuzzyIsNull(domain1.m_maxX - domain2.m_maxX) | |
259 | && qFuzzyIsNull(domain1.m_maxY - domain2.m_maxY) |
|
259 | && qFuzzyIsNull(domain1.m_maxY - domain2.m_maxY) | |
@@ -262,13 +262,13 bool QT_CHARTS_AUTOTEST_EXPORT operator== (const LogXLogYPolarDomain &domain1, c | |||||
262 | } |
|
262 | } | |
263 |
|
263 | |||
264 |
|
264 | |||
265 |
bool Q |
|
265 | bool Q_AUTOTEST_EXPORT operator!= (const LogXLogYPolarDomain &domain1, const LogXLogYPolarDomain &domain2) | |
266 | { |
|
266 | { | |
267 | return !(domain1 == domain2); |
|
267 | return !(domain1 == domain2); | |
268 | } |
|
268 | } | |
269 |
|
269 | |||
270 |
|
270 | |||
271 |
QDebug Q |
|
271 | QDebug Q_AUTOTEST_EXPORT operator<<(QDebug dbg, const LogXLogYPolarDomain &domain) | |
272 | { |
|
272 | { | |
273 | #ifdef QT_NO_TEXTSTREAM |
|
273 | #ifdef QT_NO_TEXTSTREAM | |
274 | Q_UNUSED(domain) |
|
274 | Q_UNUSED(domain) |
@@ -44,7 +44,7 | |||||
44 |
|
44 | |||
45 | QT_CHARTS_BEGIN_NAMESPACE |
|
45 | QT_CHARTS_BEGIN_NAMESPACE | |
46 |
|
46 | |||
47 |
class Q |
|
47 | class Q_AUTOTEST_EXPORT LogXLogYPolarDomain: public PolarDomain | |
48 | { |
|
48 | { | |
49 | Q_OBJECT |
|
49 | Q_OBJECT | |
50 | public: |
|
50 | public: | |
@@ -55,9 +55,9 public: | |||||
55 |
|
55 | |||
56 | void setRange(qreal minX, qreal maxX, qreal minY, qreal maxY); |
|
56 | void setRange(qreal minX, qreal maxX, qreal minY, qreal maxY); | |
57 |
|
57 | |||
58 |
friend bool Q |
|
58 | friend bool Q_AUTOTEST_EXPORT operator== (const LogXLogYPolarDomain &domain1, const LogXLogYPolarDomain &domain2); | |
59 |
friend bool Q |
|
59 | friend bool Q_AUTOTEST_EXPORT operator!= (const LogXLogYPolarDomain &domain1, const LogXLogYPolarDomain &domain2); | |
60 |
friend QDebug Q |
|
60 | friend QDebug Q_AUTOTEST_EXPORT operator<<(QDebug dbg, const LogXLogYPolarDomain &domain); | |
61 |
|
61 | |||
62 | void zoomIn(const QRectF &rect); |
|
62 | void zoomIn(const QRectF &rect); | |
63 | void zoomOut(const QRectF &rect); |
|
63 | void zoomOut(const QRectF &rect); |
@@ -225,7 +225,7 void LogXYDomain::handleHorizontalAxisBaseChanged(qreal baseX) | |||||
225 |
|
225 | |||
226 | // operators |
|
226 | // operators | |
227 |
|
227 | |||
228 |
bool Q |
|
228 | bool Q_AUTOTEST_EXPORT operator== (const LogXYDomain &domain1, const LogXYDomain &domain2) | |
229 | { |
|
229 | { | |
230 | return (qFuzzyIsNull(domain1.m_maxX - domain2.m_maxX) |
|
230 | return (qFuzzyIsNull(domain1.m_maxX - domain2.m_maxX) | |
231 | && qFuzzyIsNull(domain1.m_maxY - domain2.m_maxY) |
|
231 | && qFuzzyIsNull(domain1.m_maxY - domain2.m_maxY) | |
@@ -234,13 +234,13 bool QT_CHARTS_AUTOTEST_EXPORT operator== (const LogXYDomain &domain1, const Log | |||||
234 | } |
|
234 | } | |
235 |
|
235 | |||
236 |
|
236 | |||
237 |
bool Q |
|
237 | bool Q_AUTOTEST_EXPORT operator!= (const LogXYDomain &domain1, const LogXYDomain &domain2) | |
238 | { |
|
238 | { | |
239 | return !(domain1 == domain2); |
|
239 | return !(domain1 == domain2); | |
240 | } |
|
240 | } | |
241 |
|
241 | |||
242 |
|
242 | |||
243 |
QDebug Q |
|
243 | QDebug Q_AUTOTEST_EXPORT operator<<(QDebug dbg, const LogXYDomain &domain) | |
244 | { |
|
244 | { | |
245 | #ifdef QT_NO_TEXTSTREAM |
|
245 | #ifdef QT_NO_TEXTSTREAM | |
246 | Q_UNUSED(domain) |
|
246 | Q_UNUSED(domain) |
@@ -44,7 +44,7 | |||||
44 |
|
44 | |||
45 | QT_CHARTS_BEGIN_NAMESPACE |
|
45 | QT_CHARTS_BEGIN_NAMESPACE | |
46 |
|
46 | |||
47 |
class Q |
|
47 | class Q_AUTOTEST_EXPORT LogXYDomain: public AbstractDomain | |
48 | { |
|
48 | { | |
49 | Q_OBJECT |
|
49 | Q_OBJECT | |
50 | public: |
|
50 | public: | |
@@ -55,9 +55,9 public: | |||||
55 |
|
55 | |||
56 | void setRange(qreal minX, qreal maxX, qreal minY, qreal maxY); |
|
56 | void setRange(qreal minX, qreal maxX, qreal minY, qreal maxY); | |
57 |
|
57 | |||
58 |
friend bool Q |
|
58 | friend bool Q_AUTOTEST_EXPORT operator== (const LogXYDomain &domain1, const LogXYDomain &domain2); | |
59 |
friend bool Q |
|
59 | friend bool Q_AUTOTEST_EXPORT operator!= (const LogXYDomain &domain1, const LogXYDomain &domain2); | |
60 |
friend QDebug Q |
|
60 | friend QDebug Q_AUTOTEST_EXPORT operator<<(QDebug dbg, const LogXYDomain &domain); | |
61 |
|
61 | |||
62 | void zoomIn(const QRectF &rect); |
|
62 | void zoomIn(const QRectF &rect); | |
63 | void zoomOut(const QRectF &rect); |
|
63 | void zoomOut(const QRectF &rect); |
@@ -222,7 +222,7 void LogXYPolarDomain::handleHorizontalAxisBaseChanged(qreal baseX) | |||||
222 |
|
222 | |||
223 | // operators |
|
223 | // operators | |
224 |
|
224 | |||
225 |
bool Q |
|
225 | bool Q_AUTOTEST_EXPORT operator== (const LogXYPolarDomain &domain1, const LogXYPolarDomain &domain2) | |
226 | { |
|
226 | { | |
227 | return (qFuzzyIsNull(domain1.m_maxX - domain2.m_maxX) |
|
227 | return (qFuzzyIsNull(domain1.m_maxX - domain2.m_maxX) | |
228 | && qFuzzyIsNull(domain1.m_maxY - domain2.m_maxY) |
|
228 | && qFuzzyIsNull(domain1.m_maxY - domain2.m_maxY) | |
@@ -231,13 +231,13 bool QT_CHARTS_AUTOTEST_EXPORT operator== (const LogXYPolarDomain &domain1, cons | |||||
231 | } |
|
231 | } | |
232 |
|
232 | |||
233 |
|
233 | |||
234 |
bool Q |
|
234 | bool Q_AUTOTEST_EXPORT operator!= (const LogXYPolarDomain &domain1, const LogXYPolarDomain &domain2) | |
235 | { |
|
235 | { | |
236 | return !(domain1 == domain2); |
|
236 | return !(domain1 == domain2); | |
237 | } |
|
237 | } | |
238 |
|
238 | |||
239 |
|
239 | |||
240 |
QDebug Q |
|
240 | QDebug Q_AUTOTEST_EXPORT operator<<(QDebug dbg, const LogXYPolarDomain &domain) | |
241 | { |
|
241 | { | |
242 | #ifdef QT_NO_TEXTSTREAM |
|
242 | #ifdef QT_NO_TEXTSTREAM | |
243 | Q_UNUSED(domain) |
|
243 | Q_UNUSED(domain) |
@@ -44,7 +44,7 | |||||
44 |
|
44 | |||
45 | QT_CHARTS_BEGIN_NAMESPACE |
|
45 | QT_CHARTS_BEGIN_NAMESPACE | |
46 |
|
46 | |||
47 |
class Q |
|
47 | class Q_AUTOTEST_EXPORT LogXYPolarDomain: public PolarDomain | |
48 | { |
|
48 | { | |
49 | Q_OBJECT |
|
49 | Q_OBJECT | |
50 | public: |
|
50 | public: | |
@@ -55,9 +55,9 public: | |||||
55 |
|
55 | |||
56 | void setRange(qreal minX, qreal maxX, qreal minY, qreal maxY); |
|
56 | void setRange(qreal minX, qreal maxX, qreal minY, qreal maxY); | |
57 |
|
57 | |||
58 |
friend bool Q |
|
58 | friend bool Q_AUTOTEST_EXPORT operator== (const LogXYPolarDomain &domain1, const LogXYPolarDomain &domain2); | |
59 |
friend bool Q |
|
59 | friend bool Q_AUTOTEST_EXPORT operator!= (const LogXYPolarDomain &domain1, const LogXYPolarDomain &domain2); | |
60 |
friend QDebug Q |
|
60 | friend QDebug Q_AUTOTEST_EXPORT operator<<(QDebug dbg, const LogXYPolarDomain &domain); | |
61 |
|
61 | |||
62 | void zoomIn(const QRectF &rect); |
|
62 | void zoomIn(const QRectF &rect); | |
63 | void zoomOut(const QRectF &rect); |
|
63 | void zoomOut(const QRectF &rect); |
@@ -44,7 +44,7 | |||||
44 |
|
44 | |||
45 | QT_CHARTS_BEGIN_NAMESPACE |
|
45 | QT_CHARTS_BEGIN_NAMESPACE | |
46 |
|
46 | |||
47 |
class Q |
|
47 | class Q_AUTOTEST_EXPORT PolarDomain: public AbstractDomain | |
48 | { |
|
48 | { | |
49 | Q_OBJECT |
|
49 | Q_OBJECT | |
50 | public: |
|
50 | public: |
@@ -221,7 +221,7 void XLogYDomain::handleVerticalAxisBaseChanged(qreal baseY) | |||||
221 |
|
221 | |||
222 | // operators |
|
222 | // operators | |
223 |
|
223 | |||
224 |
bool Q |
|
224 | bool Q_AUTOTEST_EXPORT operator== (const XLogYDomain &domain1, const XLogYDomain &domain2) | |
225 | { |
|
225 | { | |
226 | return (qFuzzyIsNull(domain1.m_maxX - domain2.m_maxX) |
|
226 | return (qFuzzyIsNull(domain1.m_maxX - domain2.m_maxX) | |
227 | && qFuzzyIsNull(domain1.m_maxY - domain2.m_maxY) |
|
227 | && qFuzzyIsNull(domain1.m_maxY - domain2.m_maxY) | |
@@ -230,13 +230,13 bool QT_CHARTS_AUTOTEST_EXPORT operator== (const XLogYDomain &domain1, const XLo | |||||
230 | } |
|
230 | } | |
231 |
|
231 | |||
232 |
|
232 | |||
233 |
bool Q |
|
233 | bool Q_AUTOTEST_EXPORT operator!= (const XLogYDomain &domain1, const XLogYDomain &domain2) | |
234 | { |
|
234 | { | |
235 | return !(domain1 == domain2); |
|
235 | return !(domain1 == domain2); | |
236 | } |
|
236 | } | |
237 |
|
237 | |||
238 |
|
238 | |||
239 |
QDebug Q |
|
239 | QDebug Q_AUTOTEST_EXPORT operator<<(QDebug dbg, const XLogYDomain &domain) | |
240 | { |
|
240 | { | |
241 | #ifdef QT_NO_TEXTSTREAM |
|
241 | #ifdef QT_NO_TEXTSTREAM | |
242 | Q_UNUSED(domain) |
|
242 | Q_UNUSED(domain) |
@@ -44,7 +44,7 | |||||
44 |
|
44 | |||
45 | QT_CHARTS_BEGIN_NAMESPACE |
|
45 | QT_CHARTS_BEGIN_NAMESPACE | |
46 |
|
46 | |||
47 |
class Q |
|
47 | class Q_AUTOTEST_EXPORT XLogYDomain: public AbstractDomain | |
48 | { |
|
48 | { | |
49 | Q_OBJECT |
|
49 | Q_OBJECT | |
50 | public: |
|
50 | public: | |
@@ -55,9 +55,9 public: | |||||
55 |
|
55 | |||
56 | void setRange(qreal minX, qreal maxX, qreal minY, qreal maxY); |
|
56 | void setRange(qreal minX, qreal maxX, qreal minY, qreal maxY); | |
57 |
|
57 | |||
58 |
friend bool Q |
|
58 | friend bool Q_AUTOTEST_EXPORT operator== (const XLogYDomain &domain1, const XLogYDomain &domain2); | |
59 |
friend bool Q |
|
59 | friend bool Q_AUTOTEST_EXPORT operator!= (const XLogYDomain &domain1, const XLogYDomain &domain2); | |
60 |
friend QDebug Q |
|
60 | friend QDebug Q_AUTOTEST_EXPORT operator<<(QDebug dbg, const XLogYDomain &domain); | |
61 |
|
61 | |||
62 | void zoomIn(const QRectF &rect); |
|
62 | void zoomIn(const QRectF &rect); | |
63 | void zoomOut(const QRectF &rect); |
|
63 | void zoomOut(const QRectF &rect); |
@@ -217,7 +217,7 void XLogYPolarDomain::handleVerticalAxisBaseChanged(qreal baseY) | |||||
217 |
|
217 | |||
218 | // operators |
|
218 | // operators | |
219 |
|
219 | |||
220 |
bool Q |
|
220 | bool Q_AUTOTEST_EXPORT operator== (const XLogYPolarDomain &domain1, const XLogYPolarDomain &domain2) | |
221 | { |
|
221 | { | |
222 | return (qFuzzyIsNull(domain1.m_maxX - domain2.m_maxX) |
|
222 | return (qFuzzyIsNull(domain1.m_maxX - domain2.m_maxX) | |
223 | && qFuzzyIsNull(domain1.m_maxY - domain2.m_maxY) |
|
223 | && qFuzzyIsNull(domain1.m_maxY - domain2.m_maxY) | |
@@ -226,13 +226,13 bool QT_CHARTS_AUTOTEST_EXPORT operator== (const XLogYPolarDomain &domain1, cons | |||||
226 | } |
|
226 | } | |
227 |
|
227 | |||
228 |
|
228 | |||
229 |
bool Q |
|
229 | bool Q_AUTOTEST_EXPORT operator!= (const XLogYPolarDomain &domain1, const XLogYPolarDomain &domain2) | |
230 | { |
|
230 | { | |
231 | return !(domain1 == domain2); |
|
231 | return !(domain1 == domain2); | |
232 | } |
|
232 | } | |
233 |
|
233 | |||
234 |
|
234 | |||
235 |
QDebug Q |
|
235 | QDebug Q_AUTOTEST_EXPORT operator<<(QDebug dbg, const XLogYPolarDomain &domain) | |
236 | { |
|
236 | { | |
237 | #ifdef QT_NO_TEXTSTREAM |
|
237 | #ifdef QT_NO_TEXTSTREAM | |
238 | Q_UNUSED(domain) |
|
238 | Q_UNUSED(domain) |
@@ -44,7 +44,7 | |||||
44 |
|
44 | |||
45 | QT_CHARTS_BEGIN_NAMESPACE |
|
45 | QT_CHARTS_BEGIN_NAMESPACE | |
46 |
|
46 | |||
47 |
class Q |
|
47 | class Q_AUTOTEST_EXPORT XLogYPolarDomain: public PolarDomain | |
48 | { |
|
48 | { | |
49 | Q_OBJECT |
|
49 | Q_OBJECT | |
50 | public: |
|
50 | public: | |
@@ -55,9 +55,9 public: | |||||
55 |
|
55 | |||
56 | void setRange(qreal minX, qreal maxX, qreal minY, qreal maxY); |
|
56 | void setRange(qreal minX, qreal maxX, qreal minY, qreal maxY); | |
57 |
|
57 | |||
58 |
friend bool Q |
|
58 | friend bool Q_AUTOTEST_EXPORT operator== (const XLogYPolarDomain &domain1, const XLogYPolarDomain &domain2); | |
59 |
friend bool Q |
|
59 | friend bool Q_AUTOTEST_EXPORT operator!= (const XLogYPolarDomain &domain1, const XLogYPolarDomain &domain2); | |
60 |
friend QDebug Q |
|
60 | friend QDebug Q_AUTOTEST_EXPORT operator<<(QDebug dbg, const XLogYPolarDomain &domain); | |
61 |
|
61 | |||
62 | void zoomIn(const QRectF &rect); |
|
62 | void zoomIn(const QRectF &rect); | |
63 | void zoomOut(const QRectF &rect); |
|
63 | void zoomOut(const QRectF &rect); |
@@ -183,7 +183,7 QPointF XYDomain::calculateDomainPoint(const QPointF &point) const | |||||
183 |
|
183 | |||
184 | // operators |
|
184 | // operators | |
185 |
|
185 | |||
186 |
bool Q |
|
186 | bool Q_AUTOTEST_EXPORT operator== (const XYDomain &domain1, const XYDomain &domain2) | |
187 | { |
|
187 | { | |
188 | return (qFuzzyCompare(domain1.m_maxX, domain2.m_maxX) |
|
188 | return (qFuzzyCompare(domain1.m_maxX, domain2.m_maxX) | |
189 | && qFuzzyCompare(domain1.m_maxY, domain2.m_maxY) |
|
189 | && qFuzzyCompare(domain1.m_maxY, domain2.m_maxY) | |
@@ -192,13 +192,13 bool QT_CHARTS_AUTOTEST_EXPORT operator== (const XYDomain &domain1, const XYDoma | |||||
192 | } |
|
192 | } | |
193 |
|
193 | |||
194 |
|
194 | |||
195 |
bool Q |
|
195 | bool Q_AUTOTEST_EXPORT operator!= (const XYDomain &domain1, const XYDomain &domain2) | |
196 | { |
|
196 | { | |
197 | return !(domain1 == domain2); |
|
197 | return !(domain1 == domain2); | |
198 | } |
|
198 | } | |
199 |
|
199 | |||
200 |
|
200 | |||
201 |
QDebug Q |
|
201 | QDebug Q_AUTOTEST_EXPORT operator<<(QDebug dbg, const XYDomain &domain) | |
202 | { |
|
202 | { | |
203 | #ifdef QT_NO_TEXTSTREAM |
|
203 | #ifdef QT_NO_TEXTSTREAM | |
204 | Q_UNUSED(domain) |
|
204 | Q_UNUSED(domain) |
@@ -44,7 +44,7 | |||||
44 |
|
44 | |||
45 | QT_CHARTS_BEGIN_NAMESPACE |
|
45 | QT_CHARTS_BEGIN_NAMESPACE | |
46 |
|
46 | |||
47 |
class Q |
|
47 | class Q_AUTOTEST_EXPORT XYDomain: public AbstractDomain | |
48 | { |
|
48 | { | |
49 | Q_OBJECT |
|
49 | Q_OBJECT | |
50 | public: |
|
50 | public: | |
@@ -55,9 +55,9 public: | |||||
55 |
|
55 | |||
56 | void setRange(qreal minX, qreal maxX, qreal minY, qreal maxY); |
|
56 | void setRange(qreal minX, qreal maxX, qreal minY, qreal maxY); | |
57 |
|
57 | |||
58 |
friend bool Q |
|
58 | friend bool Q_AUTOTEST_EXPORT operator== (const XYDomain &Domain1, const XYDomain &Domain2); | |
59 |
friend bool Q |
|
59 | friend bool Q_AUTOTEST_EXPORT operator!= (const XYDomain &Domain1, const XYDomain &Domain2); | |
60 |
friend QDebug Q |
|
60 | friend QDebug Q_AUTOTEST_EXPORT operator<<(QDebug dbg, const XYDomain &AbstractDomain); | |
61 |
|
61 | |||
62 | void zoomIn(const QRectF &rect); |
|
62 | void zoomIn(const QRectF &rect); | |
63 | void zoomOut(const QRectF &rect); |
|
63 | void zoomOut(const QRectF &rect); |
@@ -163,7 +163,7 qreal XYPolarDomain::toRadialCoordinate(qreal value, bool &ok) const | |||||
163 |
|
163 | |||
164 | // operators |
|
164 | // operators | |
165 |
|
165 | |||
166 |
bool Q |
|
166 | bool Q_AUTOTEST_EXPORT operator== (const XYPolarDomain &domain1, const XYPolarDomain &domain2) | |
167 | { |
|
167 | { | |
168 | return (qFuzzyCompare(domain1.m_maxX, domain2.m_maxX) |
|
168 | return (qFuzzyCompare(domain1.m_maxX, domain2.m_maxX) | |
169 | && qFuzzyCompare(domain1.m_maxY, domain2.m_maxY) |
|
169 | && qFuzzyCompare(domain1.m_maxY, domain2.m_maxY) | |
@@ -172,13 +172,13 bool QT_CHARTS_AUTOTEST_EXPORT operator== (const XYPolarDomain &domain1, const X | |||||
172 | } |
|
172 | } | |
173 |
|
173 | |||
174 |
|
174 | |||
175 |
bool Q |
|
175 | bool Q_AUTOTEST_EXPORT operator!= (const XYPolarDomain &domain1, const XYPolarDomain &domain2) | |
176 | { |
|
176 | { | |
177 | return !(domain1 == domain2); |
|
177 | return !(domain1 == domain2); | |
178 | } |
|
178 | } | |
179 |
|
179 | |||
180 |
|
180 | |||
181 |
QDebug Q |
|
181 | QDebug Q_AUTOTEST_EXPORT operator<<(QDebug dbg, const XYPolarDomain &domain) | |
182 | { |
|
182 | { | |
183 | #ifdef QT_NO_TEXTSTREAM |
|
183 | #ifdef QT_NO_TEXTSTREAM | |
184 | Q_UNUSED(domain) |
|
184 | Q_UNUSED(domain) |
@@ -43,7 +43,7 | |||||
43 |
|
43 | |||
44 | QT_CHARTS_BEGIN_NAMESPACE |
|
44 | QT_CHARTS_BEGIN_NAMESPACE | |
45 |
|
45 | |||
46 |
class Q |
|
46 | class Q_AUTOTEST_EXPORT XYPolarDomain: public PolarDomain | |
47 | { |
|
47 | { | |
48 | Q_OBJECT |
|
48 | Q_OBJECT | |
49 | public: |
|
49 | public: | |
@@ -54,9 +54,9 public: | |||||
54 |
|
54 | |||
55 | void setRange(qreal minX, qreal maxX, qreal minY, qreal maxY); |
|
55 | void setRange(qreal minX, qreal maxX, qreal minY, qreal maxY); | |
56 |
|
56 | |||
57 |
friend bool Q |
|
57 | friend bool Q_AUTOTEST_EXPORT operator== (const XYPolarDomain &Domain1, const XYPolarDomain &Domain2); | |
58 |
friend bool Q |
|
58 | friend bool Q_AUTOTEST_EXPORT operator!= (const XYPolarDomain &Domain1, const XYPolarDomain &Domain2); | |
59 |
friend QDebug Q |
|
59 | friend QDebug Q_AUTOTEST_EXPORT operator<<(QDebug dbg, const XYPolarDomain &AbstractDomain); | |
60 |
|
60 | |||
61 | void zoomIn(const QRectF &rect); |
|
61 | void zoomIn(const QRectF &rect); | |
62 | void zoomOut(const QRectF &rect); |
|
62 | void zoomOut(const QRectF &rect); |
@@ -48,19 +48,11 | |||||
48 | # define QT_CHARTS_EXPORT Q_DECL_IMPORT |
|
48 | # define QT_CHARTS_EXPORT Q_DECL_IMPORT | |
49 | #endif |
|
49 | #endif | |
50 |
|
50 | |||
51 | #if defined(BUILD_PRIVATE_UNIT_TESTS) && defined(QT_CHARTS_LIBRARY) |
|
|||
52 | # define QT_CHARTS_AUTOTEST_EXPORT Q_DECL_EXPORT |
|
|||
53 | #elif defined(BUILD_PRIVATE_UNIT_TESTS) && !defined(QT_CHARTS_LIBRARY) |
|
|||
54 | # define QT_CHARTS_AUTOTEST_EXPORT Q_DECL_IMPORT |
|
|||
55 | #else |
|
|||
56 | # define QT_CHARTS_AUTOTEST_EXPORT |
|
|||
57 | #endif |
|
|||
58 |
|
||||
59 | #ifdef QT_CHARTS_STATICLIB |
|
51 | #ifdef QT_CHARTS_STATICLIB | |
60 | # undef QT_CHARTS_EXPORT |
|
52 | # undef QT_CHARTS_EXPORT | |
61 |
# undef Q |
|
53 | # undef Q_AUTOTEST_EXPORT | |
62 | # define QT_CHARTS_EXPORT |
|
54 | # define QT_CHARTS_EXPORT | |
63 |
# define Q |
|
55 | # define Q_AUTOTEST_EXPORT | |
64 | #endif |
|
56 | #endif | |
65 |
|
57 | |||
66 | #define QT_CHARTS_NAMESPACE QtCharts |
|
58 | #define QT_CHARTS_NAMESPACE QtCharts |
@@ -8,8 +8,3 QT += testlib widgets | |||||
8 |
|
8 | |||
9 | INCLUDEPATH += ../inc |
|
9 | INCLUDEPATH += ../inc | |
10 | HEADERS += ../inc/tst_definitions.h |
|
10 | HEADERS += ../inc/tst_definitions.h | |
11 |
|
||||
12 | #Define for unit tests |
|
|||
13 | CONFIG(debug, debug|release) { |
|
|||
14 | DEFINES += BUILD_PRIVATE_UNIT_TESTS |
|
|||
15 | } |
|
@@ -34,3 +34,8 qtHaveModule(quick) { | |||||
34 | SUBDIRS += qml \ |
|
34 | SUBDIRS += qml \ | |
35 | qml-qtquicktest |
|
35 | qml-qtquicktest | |
36 | } |
|
36 | } | |
|
37 | ||||
|
38 | !contains(QT_CONFIG, private_tests): SUBDIRS -= \ | |||
|
39 | domain \ | |||
|
40 | chartdataset | |||
|
41 |
@@ -26,27 +26,6 | |||||
26 | ** $QT_END_LICENSE$ |
|
26 | ** $QT_END_LICENSE$ | |
27 | ** |
|
27 | ** | |
28 | ****************************************************************************/ |
|
28 | ****************************************************************************/ | |
29 | #ifndef BUILD_PRIVATE_UNIT_TESTS |
|
|||
30 | #include <QtTest/QtTest> |
|
|||
31 |
|
||||
32 | class tst_ChartDataSet: public QObject { |
|
|||
33 |
|
||||
34 | Q_OBJECT |
|
|||
35 |
|
||||
36 | private Q_SLOTS: |
|
|||
37 | void skip(); |
|
|||
38 |
|
||||
39 | }; |
|
|||
40 |
|
||||
41 | void tst_ChartDataSet::skip() |
|
|||
42 | { |
|
|||
43 | QSKIP("This test requires the debug version of library"); |
|
|||
44 | } |
|
|||
45 |
|
||||
46 | QTEST_MAIN(tst_ChartDataSet) |
|
|||
47 | #include "tst_chartdataset.moc" |
|
|||
48 |
|
||||
49 | #else |
|
|||
50 |
|
29 | |||
51 | #include <QtTest/QtTest> |
|
30 | #include <QtTest/QtTest> | |
52 | #include <QtCharts/QAbstractAxis> |
|
31 | #include <QtCharts/QAbstractAxis> | |
@@ -404,4 +383,3 void tst_ChartDataSet::detachAxis() | |||||
404 |
|
383 | |||
405 | QTEST_MAIN(tst_ChartDataSet) |
|
384 | QTEST_MAIN(tst_ChartDataSet) | |
406 | #include "tst_chartdataset.moc" |
|
385 | #include "tst_chartdataset.moc" | |
407 | #endif |
|
@@ -26,29 +26,6 | |||||
26 | ** $QT_END_LICENSE$ |
|
26 | ** $QT_END_LICENSE$ | |
27 | ** |
|
27 | ** | |
28 | ****************************************************************************/ |
|
28 | ****************************************************************************/ | |
29 | #ifndef BUILD_PRIVATE_UNIT_TESTS |
|
|||
30 |
|
||||
31 | #include <QtTest/QtTest> |
|
|||
32 |
|
||||
33 | class tst_Domain: public QObject { |
|
|||
34 |
|
||||
35 | Q_OBJECT |
|
|||
36 |
|
||||
37 | private Q_SLOTS: |
|
|||
38 | void skip(); |
|
|||
39 |
|
||||
40 | }; |
|
|||
41 |
|
||||
42 | void tst_Domain::skip() |
|
|||
43 | { |
|
|||
44 | QSKIP("This test requires the debug version of library"); |
|
|||
45 | } |
|
|||
46 |
|
||||
47 | QTEST_MAIN(tst_Domain) |
|
|||
48 | #include "tst_domain.moc" |
|
|||
49 |
|
||||
50 | #else |
|
|||
51 |
|
||||
52 | #include <QtTest/QtTest> |
|
29 | #include <QtTest/QtTest> | |
53 | #include <private/xydomain_p.h> |
|
30 | #include <private/xydomain_p.h> | |
54 | #include <private/qabstractaxis_p.h> |
|
31 | #include <private/qabstractaxis_p.h> | |
@@ -753,4 +730,3 void tst_Domain::move() | |||||
753 |
|
730 | |||
754 | QTEST_MAIN(tst_Domain) |
|
731 | QTEST_MAIN(tst_Domain) | |
755 | #include "tst_domain.moc" |
|
732 | #include "tst_domain.moc" | |
756 | #endif |
|
General Comments 0
You need to be logged in to leave comments.
Login now