@@ -435,7 +435,7 AbstractDomain::DomainType ChartDataSet::selectDomain(QList<QAbstractAxis*> axes | |||
|
435 | 435 | } |
|
436 | 436 | |
|
437 | 437 | if(vertical==LogType && horizontal== LogType) { |
|
438 |
return AbstractDomain::XLogY |
|
|
438 | return AbstractDomain::LogXLogYDomain; | |
|
439 | 439 | } |
|
440 | 440 | |
|
441 | 441 | return AbstractDomain::UndefinedDomain; |
@@ -447,14 +447,14 AbstractDomain* ChartDataSet::createDomain(AbstractDomain::DomainType type) | |||
|
447 | 447 | { |
|
448 | 448 | switch(type) |
|
449 | 449 | { |
|
450 |
case AbstractDomain::XLogY |
|
|
451 | return 0; | |
|
450 | case AbstractDomain::LogXLogYDomain: | |
|
451 | return new LogXLogYDomain(); | |
|
452 | 452 | case AbstractDomain::XYDomain: |
|
453 | 453 | return new XYDomain(); |
|
454 | 454 | case AbstractDomain::XLogYDomain: |
|
455 | return 0; | |
|
455 | return new XLogYDomain(); | |
|
456 | 456 | case AbstractDomain::LogXYDomain: |
|
457 | return 0; | |
|
457 | return new LogXYDomain(); | |
|
458 | 458 | default: |
|
459 | 459 | return 0; |
|
460 | 460 | } |
@@ -42,7 +42,7 public: | |||
|
42 | 42 | explicit LogXLogYDomain(QObject *object = 0); |
|
43 | 43 | virtual ~LogXLogYDomain(); |
|
44 | 44 | |
|
45 |
DomainType type(){ return AbstractDomain::XLogY |
|
|
45 | DomainType type(){ return AbstractDomain::LogXLogYDomain;} | |
|
46 | 46 | |
|
47 | 47 | void setRange(qreal minX, qreal maxX, qreal minY, qreal maxY); |
|
48 | 48 |
@@ -42,7 +42,7 public: | |||
|
42 | 42 | explicit XLogYDomain(QObject *object = 0); |
|
43 | 43 | virtual ~XLogYDomain(); |
|
44 | 44 | |
|
45 | DomainType type(){ return AbstractDomain::XLogYDomain;} | |
|
45 | DomainType type(){ return AbstractDomain::XLogYDomain;}; | |
|
46 | 46 | |
|
47 | 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