##// END OF EJS Templates
Fixed bug in setting chart theme...
Fixed bug in setting chart theme The bug was that if you first add a series, then change theme and then restore the original theme, the color of the series was changed even though it should have been restored to match the original color.

File last commit:

r222:9497ff6ff131
r312:0677c9dd6d92
Show More
domain_p.h
31 lines | 666 B | text/x-c | CLexer
#ifndef DOMAIN_H_
#define DOMAIN_H_
#include "qchartglobal.h"
#include <QRect>
QTCOMMERCIALCHART_BEGIN_NAMESPACE
class Domain {
public:
Domain(qreal minX=0, qreal maxX=0, qreal minY=0, qreal maxY=0);
virtual ~Domain();
qreal spanX() const;
qreal spanY() const;
friend bool operator== (const Domain &domain1, const Domain &domain2);
friend bool operator!= (const Domain &domain1, const Domain &domain2);
friend QDebug operator<<(QDebug dbg, const Domain &domain);
Domain subDomain(const QRectF& rect, qreal maxWidth, qreal maxHeight) const;
public:
qreal m_minX;
qreal m_maxX;
qreal m_minY;
qreal m_maxY;
};
QTCOMMERCIALCHART_END_NAMESPACE
#endif