From ce059d3667fe61194e71d4c40e916821a5522f84 2012-02-20 14:45:27 From: Michal Klocek Date: 2012-02-20 14:45:27 Subject: [PATCH] Add min max constuctor to domain --- diff --git a/src/domain.cpp b/src/domain.cpp index f2969e7..49114ed 100644 --- a/src/domain.cpp +++ b/src/domain.cpp @@ -2,18 +2,16 @@ QTCOMMERCIALCHART_BEGIN_NAMESPACE -Domain::Domain(): -m_minX(0), -m_maxX(0), -m_minY(0), -m_maxY(0) +Domain::Domain(qreal minX, qreal maxX, qreal minY, qreal maxY): +m_minX(minX), +m_maxX(maxX), +m_minY(minY), +m_maxY(maxY) { - } Domain::~Domain() { - // TODO Auto-generated destructor stub } qreal Domain::spanX() const diff --git a/src/domain_p.h b/src/domain_p.h index c60f8db..e4f8ffc 100644 --- a/src/domain_p.h +++ b/src/domain_p.h @@ -7,7 +7,7 @@ QTCOMMERCIALCHART_BEGIN_NAMESPACE class Domain { public: - Domain(); + Domain(qreal minX=0, qreal maxX=0, qreal minY=0, qreal maxY=0); virtual ~Domain(); qreal spanX() const;