From 35717e93d7e0f02d97cad86be53fe3f58aee1ab7 2012-07-05 06:50:08 From: Marek Rosa Date: 2012-07-05 06:50:08 Subject: [PATCH] Docs fixes --- diff --git a/src/axis/qabstractaxis.cpp b/src/axis/qabstractaxis.cpp index f990378..ca960bd 100644 --- a/src/axis/qabstractaxis.cpp +++ b/src/axis/qabstractaxis.cpp @@ -253,6 +253,7 @@ QTCOMMERCIALCHART_BEGIN_NAMESPACE */ /*! + \internal Constructs new axis object which is a child of \a parent. Ownership is taken by QChart when axis added. */ diff --git a/src/axis/qbarcategoriesaxis.cpp b/src/axis/qbarcategoriesaxis.cpp index c93311a..43793ee 100644 --- a/src/axis/qbarcategoriesaxis.cpp +++ b/src/axis/qbarcategoriesaxis.cpp @@ -82,6 +82,11 @@ QTCOMMERCIALCHART_BEGIN_NAMESPACE Defines the maximum value on the axis. */ + +/*! + \fn void QBarCategoriesAxis::categoriesChanged() + Axis emits signal when the categories of the axis has changed. +*/ /*! \fn void QBarCategoriesAxis::minChanged(const QString &min) Axis emits signal when \a min of axis has changed. diff --git a/src/qabstractseries.cpp b/src/qabstractseries.cpp index 879e832..3205cb1 100644 --- a/src/qabstractseries.cpp +++ b/src/qabstractseries.cpp @@ -152,10 +152,10 @@ QChart* QAbstractSeries::chart() const return d_ptr->m_chart; } -void QAbstractSeries::adjustView() -{ - //TODO: -} +//void QAbstractSeries::adjustView() +//{ +// //TODO: +//} /*! \brief Sets the visibility of the series to true diff --git a/src/qabstractseries.h b/src/qabstractseries.h index 6850729..07f8f7a 100644 --- a/src/qabstractseries.h +++ b/src/qabstractseries.h @@ -64,7 +64,6 @@ public: bool isVisible() const; QChart* chart() const; - void adjustView(); void show(); void hide(); diff --git a/src/qchart.cpp b/src/qchart.cpp index 563db00..1b7d9ec 100644 --- a/src/qchart.cpp +++ b/src/qchart.cpp @@ -379,15 +379,27 @@ QRectF QChart::margins() const return d_ptr->m_presenter->margins(); } +/*! + Returns the the rect within which the drawing of the chart is done. + It does not include the area defines by margins. + */ QRectF QChart::plotArea() const { return d_ptr->m_presenter->geometry(); } +///*! +// TODO: Dummy. +// Adjest the ranges of the axes so that all the data of the specified \a series is visible +// */ +//void QChart::adjustViewToSeries(QAbstractSeries* series) +//{ +// // +//} + /*! Sets animation \a options for the chart */ - void QChart::setAnimationOptions(AnimationOptions options) { d_ptr->m_presenter->setAnimationOptions(options); @@ -435,7 +447,9 @@ QList QChart::series() const { return d_ptr->m_dataset->series(); } - +/*! + Sets the minimum \a margins between the plot area (axes) and the edge of the chart widget. +*/ void QChart::setMarginsMinimum(const QRectF& margins) { d_ptr->m_presenter->setMarginsMinimum(margins); diff --git a/src/qchart.h b/src/qchart.h index 62e936d..5c6c8e2 100644 --- a/src/qchart.h +++ b/src/qchart.h @@ -111,8 +111,6 @@ public: void zoom(qreal factor); void scroll(qreal dx, qreal dy); - void adjustViewToSeries(QAbstractSeries* series = 0); - QLegend* legend() const; void setMarginsMinimum(const QRectF& margins);