From 3e812519033943db9c084048aa222d57fcdd44a6 2012-11-26 12:58:47 From: Marek Rosa Date: 2012-11-26 12:58:47 Subject: [PATCH] Added domain->type() implementation for log domains --- diff --git a/src/domain/abstractdomain_p.h b/src/domain/abstractdomain_p.h index ab47ec3..04bd7c8 100644 --- a/src/domain/abstractdomain_p.h +++ b/src/domain/abstractdomain_p.h @@ -42,7 +42,7 @@ class QTCOMMERCIALCHART_AUTOTEST_EXPORT AbstractDomain: public QObject { Q_OBJECT public: - enum DomainType { UndefinedDomain, XYDomain, XLogYDomain, LogXYDomain, XLogYLogDomain }; + enum DomainType { UndefinedDomain, XYDomain, XLogYDomain, LogXYDomain, LogXLogYDomain }; public: explicit AbstractDomain(QObject *object = 0); virtual ~AbstractDomain(); diff --git a/src/domain/logxlogydomain_p.h b/src/domain/logxlogydomain_p.h index 3ad077a..6616926 100644 --- a/src/domain/logxlogydomain_p.h +++ b/src/domain/logxlogydomain_p.h @@ -42,6 +42,8 @@ public: explicit LogXLogYDomain(QObject *object = 0); virtual ~LogXLogYDomain(); + DomainType type(){ return AbstractDomain::XLogYLogDomain;} + void setRange(qreal minX, qreal maxX, qreal minY, qreal maxY); friend bool QTCOMMERCIALCHART_AUTOTEST_EXPORT operator== (const LogXLogYDomain &domain1, const LogXLogYDomain &domain2); diff --git a/src/domain/logxydomain_p.h b/src/domain/logxydomain_p.h index 4a37788..c260624 100644 --- a/src/domain/logxydomain_p.h +++ b/src/domain/logxydomain_p.h @@ -42,6 +42,8 @@ public: explicit LogXYDomain(QObject *object = 0); virtual ~LogXYDomain(); + DomainType type(){ return AbstractDomain::LogXYDomain;} + void setRange(qreal minX, qreal maxX, qreal minY, qreal maxY); friend bool QTCOMMERCIALCHART_AUTOTEST_EXPORT operator== (const LogXYDomain &domain1, const LogXYDomain &domain2); diff --git a/src/domain/xlogydomain_p.h b/src/domain/xlogydomain_p.h index 377328c..40ead0f 100644 --- a/src/domain/xlogydomain_p.h +++ b/src/domain/xlogydomain_p.h @@ -42,6 +42,8 @@ public: explicit XLogYDomain(QObject *object = 0); virtual ~XLogYDomain(); + DomainType type(){ return AbstractDomain::XLogYDomain;} + void setRange(qreal minX, qreal maxX, qreal minY, qreal maxY); friend bool QTCOMMERCIALCHART_AUTOTEST_EXPORT operator== (const XLogYDomain &domain1, const XLogYDomain &domain2);