@@ -92,6 +92,11 QTCOMMERCIALCHART_BEGIN_NAMESPACE | |||
|
92 | 92 | */ |
|
93 | 93 | |
|
94 | 94 | /*! |
|
95 | \property QChart::margins | |
|
96 | Minimum between the plot area (axes) and the edge of the chart widget. | |
|
97 | */ | |
|
98 | ||
|
99 | /*! | |
|
95 | 100 | \property QChart::theme |
|
96 | 101 | Theme is a built-in collection of UI style related settings applied for all visual elements of a chart, like colors, |
|
97 | 102 | pens, brushes and fonts of series, axes, title and legend. \l {Chart themes demo} shows an example with a few |
@@ -358,6 +363,10 QAbstractAxis *QChart::axisY(QAbstractSeries *series) const | |||
|
358 | 363 | return left?left:right; |
|
359 | 364 | } |
|
360 | 365 | |
|
366 | /*! | |
|
367 | Returns the axes added for the \a series with \a orientation | |
|
368 | \sa addAxis(), createDefaultAxes() | |
|
369 | */ | |
|
361 | 370 | QList<QAbstractAxis *> QChart::axes(Qt::Orientations orientation, QAbstractSeries *series) const |
|
362 | 371 | { |
|
363 | 372 | QList<QAbstractAxis *> result ; |
@@ -571,11 +580,19 void QChart::setAxisY(QAbstractAxis *axis , QAbstractSeries *series) | |||
|
571 | 580 | d_ptr->m_dataset->attachAxis(series,axis); |
|
572 | 581 | } |
|
573 | 582 | |
|
574 | void QChart::addAxis(QAbstractAxis *axis,Qt::Alignment aligment) | |
|
583 | /*! | |
|
584 | Adds \a axis to the chart with \a alignment. The chart takes the ownership of the axis. | |
|
585 | \sa removeAxis(), createDefaultAxes(), QAbstractSeries::attachAxis() | |
|
586 | */ | |
|
587 | void QChart::addAxis(QAbstractAxis *axis, Qt::Alignment alignment) | |
|
575 | 588 | { |
|
576 | d_ptr->m_dataset->addAxis(axis,aligment); | |
|
589 | d_ptr->m_dataset->addAxis(axis, alignment); | |
|
577 | 590 | } |
|
578 | 591 | |
|
592 | /*! | |
|
593 | Removes \a axis from the chart. The ownership is returned to the caller. | |
|
594 | \sa addAxis(), createDefaultAxes(), QAbstractSeries::detachAxis() | |
|
595 | */ | |
|
579 | 596 | void QChart::removeAxis(QAbstractAxis *axis) |
|
580 | 597 | { |
|
581 | 598 | d_ptr->m_dataset->removeAxis(axis); |
@@ -76,15 +76,14 public: | |||
|
76 | 76 | void removeAllSeries(); |
|
77 | 77 | QList<QAbstractSeries *> series() const; |
|
78 | 78 | |
|
79 | //depreciated shit//////////////////////////////////////////////////. | |
|
79 | // *** deprecated *** | |
|
80 | 80 | void setAxisX(QAbstractAxis *axis, QAbstractSeries *series = 0); |
|
81 | 81 | void setAxisY(QAbstractAxis *axis, QAbstractSeries *series = 0); |
|
82 | ||
|
83 | 82 | QAbstractAxis *axisX(QAbstractSeries *series = 0) const; |
|
84 | 83 | QAbstractAxis *axisY(QAbstractSeries *series = 0) const; |
|
85 | ///////////////////////////////////////////////////////////////////// | |
|
84 | // ****************** | |
|
86 | 85 | |
|
87 | void addAxis(QAbstractAxis *axis,Qt::Alignment aligment); | |
|
86 | void addAxis(QAbstractAxis *axis,Qt::Alignment alignment); | |
|
88 | 87 | void removeAxis(QAbstractAxis *axis); |
|
89 | 88 | QList<QAbstractAxis*> axes(Qt::Orientations orientation = Qt::Horizontal|Qt::Vertical, QAbstractSeries *series = 0) const; |
|
90 | 89 |
General Comments 0
You need to be logged in to leave comments.
Login now