@@ -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 | \property QChart::theme |
|
100 | \property QChart::theme | |
96 | Theme is a built-in collection of UI style related settings applied for all visual elements of a chart, like colors, |
|
101 | Theme is a built-in collection of UI style related settings applied for all visual elements of a chart, like colors, | |
97 | pens, brushes and fonts of series, axes, title and legend. \l {Chart themes demo} shows an example with a few |
|
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 | return left?left:right; |
|
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 | QList<QAbstractAxis *> QChart::axes(Qt::Orientations orientation, QAbstractSeries *series) const |
|
370 | QList<QAbstractAxis *> QChart::axes(Qt::Orientations orientation, QAbstractSeries *series) const | |
362 | { |
|
371 | { | |
363 | QList<QAbstractAxis *> result ; |
|
372 | QList<QAbstractAxis *> result ; | |
@@ -571,11 +580,19 void QChart::setAxisY(QAbstractAxis *axis , QAbstractSeries *series) | |||||
571 | d_ptr->m_dataset->attachAxis(series,axis); |
|
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 | void QChart::removeAxis(QAbstractAxis *axis) |
|
596 | void QChart::removeAxis(QAbstractAxis *axis) | |
580 | { |
|
597 | { | |
581 | d_ptr->m_dataset->removeAxis(axis); |
|
598 | d_ptr->m_dataset->removeAxis(axis); |
@@ -76,15 +76,14 public: | |||||
76 | void removeAllSeries(); |
|
76 | void removeAllSeries(); | |
77 | QList<QAbstractSeries *> series() const; |
|
77 | QList<QAbstractSeries *> series() const; | |
78 |
|
78 | |||
79 | //depreciated shit//////////////////////////////////////////////////. |
|
79 | // *** deprecated *** | |
80 | void setAxisX(QAbstractAxis *axis, QAbstractSeries *series = 0); |
|
80 | void setAxisX(QAbstractAxis *axis, QAbstractSeries *series = 0); | |
81 | void setAxisY(QAbstractAxis *axis, QAbstractSeries *series = 0); |
|
81 | void setAxisY(QAbstractAxis *axis, QAbstractSeries *series = 0); | |
82 |
|
||||
83 | QAbstractAxis *axisX(QAbstractSeries *series = 0) const; |
|
82 | QAbstractAxis *axisX(QAbstractSeries *series = 0) const; | |
84 | QAbstractAxis *axisY(QAbstractSeries *series = 0) const; |
|
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 | void removeAxis(QAbstractAxis *axis); |
|
87 | void removeAxis(QAbstractAxis *axis); | |
89 | QList<QAbstractAxis*> axes(Qt::Orientations orientation = Qt::Horizontal|Qt::Vertical, QAbstractSeries *series = 0) const; |
|
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