@@ -54,4 +54,11 bool operator!= (const Domain &domain1, const Domain &domain2) | |||
|
54 | 54 | return !(domain1 == domain2); |
|
55 | 55 | } |
|
56 | 56 | |
|
57 | ||
|
58 | QDebug operator<<(QDebug dbg, const Domain &domain) | |
|
59 | { | |
|
60 | dbg.nospace() << "Domain("<<domain.m_minX<<','<<domain.m_maxX<<','<<domain.m_minY<<','<<domain.m_maxY<<')'; | |
|
61 | return dbg.maybeSpace(); | |
|
62 | } | |
|
63 | ||
|
57 | 64 | QTCOMMERCIALCHART_END_NAMESPACE |
@@ -15,6 +15,7 public: | |||
|
15 | 15 | |
|
16 | 16 | friend bool operator== (const Domain &domain1, const Domain &domain2); |
|
17 | 17 | friend bool operator!= (const Domain &domain1, const Domain &domain2); |
|
18 | friend QDebug operator<<(QDebug dbg, const Domain &domain); | |
|
18 | 19 | |
|
19 | 20 | Domain subDomain(const QRectF& rect, qreal maxWidth, qreal maxHeight) const; |
|
20 | 21 |
General Comments 0
You need to be logged in to leave comments.
Login now