##// END OF EJS Templates
Adds logdomains to factory method
Michal Klocek -
r2287:bd4b63e492b8
parent child
Show More
@@ -435,7 +435,7 AbstractDomain::DomainType ChartDataSet::selectDomain(QList<QAbstractAxis*> axes
435 }
435 }
436
436
437 if(vertical==LogType && horizontal== LogType) {
437 if(vertical==LogType && horizontal== LogType) {
438 return AbstractDomain::XLogYLogDomain;
438 return AbstractDomain::LogXLogYDomain;
439 }
439 }
440
440
441 return AbstractDomain::UndefinedDomain;
441 return AbstractDomain::UndefinedDomain;
@@ -447,14 +447,14 AbstractDomain* ChartDataSet::createDomain(AbstractDomain::DomainType type)
447 {
447 {
448 switch(type)
448 switch(type)
449 {
449 {
450 case AbstractDomain::XLogYLogDomain:
450 case AbstractDomain::LogXLogYDomain:
451 return 0;
451 return new LogXLogYDomain();
452 case AbstractDomain::XYDomain:
452 case AbstractDomain::XYDomain:
453 return new XYDomain();
453 return new XYDomain();
454 case AbstractDomain::XLogYDomain:
454 case AbstractDomain::XLogYDomain:
455 return 0;
455 return new XLogYDomain();
456 case AbstractDomain::LogXYDomain:
456 case AbstractDomain::LogXYDomain:
457 return 0;
457 return new LogXYDomain();
458 default:
458 default:
459 return 0;
459 return 0;
460 }
460 }
@@ -42,7 +42,7 public:
42 explicit LogXLogYDomain(QObject *object = 0);
42 explicit LogXLogYDomain(QObject *object = 0);
43 virtual ~LogXLogYDomain();
43 virtual ~LogXLogYDomain();
44
44
45 DomainType type(){ return AbstractDomain::XLogYLogDomain;}
45 DomainType type(){ return AbstractDomain::LogXLogYDomain;}
46
46
47 void setRange(qreal minX, qreal maxX, qreal minY, qreal maxY);
47 void setRange(qreal minX, qreal maxX, qreal minY, qreal maxY);
48
48
@@ -42,7 +42,7 public:
42 explicit XLogYDomain(QObject *object = 0);
42 explicit XLogYDomain(QObject *object = 0);
43 virtual ~XLogYDomain();
43 virtual ~XLogYDomain();
44
44
45 DomainType type(){ return AbstractDomain::XLogYDomain;}
45 DomainType type(){ return AbstractDomain::XLogYDomain;};
46
46
47 void setRange(qreal minX, qreal maxX, qreal minY, qreal maxY);
47 void setRange(qreal minX, qreal maxX, qreal minY, qreal maxY);
48
48
General Comments 0
You need to be logged in to leave comments. Login now