From f486aabc62ff2908fe3950005bc045496697021e 2012-04-12 09:52:23 From: Tero Ahola Date: 2012-04-12 09:52:23 Subject: [PATCH] No errors anymore when generating docs, wohoo! For now. --- diff --git a/src/legend/qlegend.cpp b/src/legend/qlegend.cpp index a6b470e..e181868 100644 --- a/src/legend/qlegend.cpp +++ b/src/legend/qlegend.cpp @@ -96,9 +96,11 @@ d_ptr(new QLegendPrivate(chart->d_ptr->m_presenter,this)) QObject::connect(chart->d_ptr->m_dataset,SIGNAL(seriesRemoved(QAbstractSeries *)),d_ptr.data(),SLOT(handleSeriesRemoved(QAbstractSeries *))); } +/*! + Destroys the legend object. Legend is always owned by a QChart, so an application should never call this. +*/ QLegend::~QLegend() { - } /*! @@ -209,11 +211,17 @@ bool QLegend::isAttachedToChart() return d_ptr->m_attachedToChart; } +/*! + Sets the legend's scrolling offset to value defined by \a point. +*/ void QLegend::setOffset(const QPointF& point) { d_ptr->setOffset(point.x(),point.y()); } +/*! + Returns the legend's scrolling offset. +*/ QPointF QLegend::offset() const { return QPointF(d_ptr->m_offsetX,d_ptr->m_offsetY); diff --git a/src/qchart.cpp b/src/qchart.cpp index 97eee52..5be3f49 100644 --- a/src/qchart.cpp +++ b/src/qchart.cpp @@ -385,12 +385,18 @@ bool QChart::isBackgroundVisible() const return d_ptr->m_presenter->m_backgroundItem->isVisible(); } +/*! + Sets the background drop shadow effect state to \a enabled. +*/ void QChart::setBackgroundDropShadowEnabled(bool enabled) { d_ptr->m_presenter->createChartBackgroundItem(); d_ptr->m_presenter->m_backgroundItem->setDropShadowEnabled(enabled); } +/*! + Returns true if the drop shadow effect is enabled for the chart background. +*/ bool QChart::isBackgroundDropShadowEnabled() const { if (!d_ptr->m_presenter->m_backgroundItem) diff --git a/src/qchartview.cpp b/src/qchartview.cpp index 95e8279..28466b0 100644 --- a/src/qchartview.cpp +++ b/src/qchartview.cpp @@ -50,7 +50,7 @@ QTCOMMERCIALCHART_BEGIN_NAMESPACE /*! - Constructs a chartView object which is a child of a\a parent. + Constructs a chartView object with parent \a parent to display a \a chart. */ QChartView::QChartView(QChart *chart,QWidget *parent) : QGraphicsView(parent), diff --git a/src/splinechart/qsplineseries.cpp b/src/splinechart/qsplineseries.cpp index 7c0cf4a..3f6f52b 100644 --- a/src/splinechart/qsplineseries.cpp +++ b/src/splinechart/qsplineseries.cpp @@ -78,12 +78,10 @@ QPointF QSplineSeries::controlPoint(int index) const } /*! - \fn bool QSplineSeries::setModelMappingRange(int first, int count) - Allows limiting the model mapping. - Parameter \a first specifies which element of the model should be used as a first one of the series. - Parameter \a count specifies how many elements should be mapped. If count is not specified (defaults to -1) - then all the items following \a first item in a model are used. - \sa setModel(), setModelMapping() + Sets the \a modelX to be used as a data source for x coordinate and \a modelY to be used + as a data source for y coordinate. The \a orientation parameter specifies whether the data + is in columns or in rows. + \sa setModel() */ void QSplineSeries::setModelMapping(int modelX, int modelY, Qt::Orientation orientation) { diff --git a/src/xychart/qxyseries.cpp b/src/xychart/qxyseries.cpp index a03f014..cfaa082 100644 --- a/src/xychart/qxyseries.cpp +++ b/src/xychart/qxyseries.cpp @@ -400,7 +400,6 @@ bool QXYSeries::setModel(QAbstractItemModel *model) } /*! - \fn bool QXYSeries::setModelMapping(int modelX, int modelY, Qt::Orientation orientation) Sets the \a modelX to be used as a data source for x coordinate and \a modelY to be used as a data source for y coordinate. The \a orientation parameter specifies whether the data is in columns or in rows.