diff --git a/src/axis/qbarcategoriesaxis.cpp b/src/axis/qbarcategoriesaxis.cpp index 218a99a..e047464 100644 --- a/src/axis/qbarcategoriesaxis.cpp +++ b/src/axis/qbarcategoriesaxis.cpp @@ -100,10 +100,16 @@ QBarCategoriesAxis::QBarCategoriesAxis(QObject *parent): { } +/*! + Destroys the object +*/ QBarCategoriesAxis::~QBarCategoriesAxis() { } +/*! + \internal +*/ QBarCategoriesAxis::QBarCategoriesAxis(QBarCategoriesAxisPrivate &d,QObject *parent):QAbstractAxis(d,parent) { diff --git a/src/axis/qintervalaxis.cpp b/src/axis/qintervalaxis.cpp index 73dea83..f94c9ec 100644 --- a/src/axis/qintervalaxis.cpp +++ b/src/axis/qintervalaxis.cpp @@ -54,10 +54,16 @@ QIntervalAxis::QIntervalAxis(QObject *parent): { } +/*! + Destroys the object +*/ QIntervalAxis::~QIntervalAxis() { } +/*! + \internal +*/ QIntervalAxis::QIntervalAxis(QIntervalAxisPrivate &d,QObject *parent):QValuesAxis(d,parent) { diff --git a/src/axis/qvaluesaxis.cpp b/src/axis/qvaluesaxis.cpp index 5e65b5f..a6e5506 100644 --- a/src/axis/qvaluesaxis.cpp +++ b/src/axis/qvaluesaxis.cpp @@ -114,11 +114,17 @@ QValuesAxis::QValuesAxis(QObject *parent) : } +/*! + \internal +*/ QValuesAxis::QValuesAxis(QValuesAxisPrivate &d,QObject *parent) : QAbstractAxis(d,parent) { } +/*! + Destroys the object +*/ QValuesAxis::~QValuesAxis() { diff --git a/src/barchart/qabstractbarseries.h b/src/barchart/qabstractbarseries.h index 3f6729d..7c726bb 100644 --- a/src/barchart/qabstractbarseries.h +++ b/src/barchart/qabstractbarseries.h @@ -43,7 +43,7 @@ protected: public: virtual ~QAbstractBarSeries(); - virtual QAbstractSeries::SeriesType type() const = 0; +// virtual QAbstractSeries::SeriesType type() const = 0; void setBarWidth(qreal width); qreal barWidth() const; diff --git a/src/qabstractseries.cpp b/src/qabstractseries.cpp index 18f2046..879e832 100644 --- a/src/qabstractseries.cpp +++ b/src/qabstractseries.cpp @@ -157,11 +157,21 @@ void QAbstractSeries::adjustView() //TODO: } +/*! + \brief Sets the visibility of the series to true + + \sa setVisible(), isVisible() +*/ void QAbstractSeries::show() { setVisible(true); } +/*! + \brief Sets the visibility of the series to false + + \sa setVisible(), isVisible() +*/ void QAbstractSeries::hide() { setVisible(false); diff --git a/src/qchart.cpp b/src/qchart.cpp index f9f1f2f..af9b176 100644 --- a/src/qchart.cpp +++ b/src/qchart.cpp @@ -307,6 +307,7 @@ void QChart::zoom(qreal factor) /*! Returns the pointer to the x axis object of the chart asociated with the specified \a series + If no series is provided then pointer to currently visible axis is provided */ QAbstractAxis* QChart::axisX(QAbstractSeries* series) const { @@ -315,6 +316,7 @@ QAbstractAxis* QChart::axisX(QAbstractSeries* series) const /*! Returns the pointer to the y axis object of the chart asociated with the specified \a series + If no series is provided then pointer to currently visible axis is provided */ QAbstractAxis* QChart::axisY(QAbstractSeries *series) const { @@ -325,8 +327,26 @@ QAbstractAxis* QChart::axisY(QAbstractSeries *series) const NOTICE: This function has to be called after series has been added to the chart if no customized axes are set to the chart. Otherwise axisX(), axisY() calls return NULL. Creates the axes for the chart based on the series that has already been added to the chart. - If QXYSeries derived series has been added to the chart then QValuesAxes are created as X and Y axes for the series. - If QBarSeries or series types derived from it has been added then QBarCategoriesAxis is created as X axis and QValueAxis as Y axis. + +\table + \header + \o Series type + \o X-axis + \o Y-axis + \row + \o QXYSeries + \o QValuesAxis + \o QValuesAxis + \row + \o QBarSeries + \o QBarCategoriesAxis + \o QValuesAxis + \row + \o QPieSeries + \o None + \o None + \endtable + If there are several QXYSeries derived series added to the chart and no other series type has been added then only one pair of axes is created. If there are sevaral series added of different types then each series gets its own axes pair.