##// END OF EJS Templates
Adds debug operator to domain
Michal Klocek -
r222:9497ff6ff131
parent child
Show More
@@ -54,4 +54,11 bool operator!= (const Domain &domain1, const Domain &domain2)
54 return !(domain1 == domain2);
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 QTCOMMERCIALCHART_END_NAMESPACE
64 QTCOMMERCIALCHART_END_NAMESPACE
@@ -15,6 +15,7 public:
15
15
16 friend bool operator== (const Domain &domain1, const Domain &domain2);
16 friend bool operator== (const Domain &domain1, const Domain &domain2);
17 friend bool operator!= (const Domain &domain1, const Domain &domain2);
17 friend bool operator!= (const Domain &domain1, const Domain &domain2);
18 friend QDebug operator<<(QDebug dbg, const Domain &domain);
18
19
19 Domain subDomain(const QRectF& rect, qreal maxWidth, qreal maxHeight) const;
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