From f5fdb845366c8bda3b6065d76e9886e5aca4261b 2012-04-04 13:19:09 From: Marek Rosa Date: 2012-04-04 13:19:09 Subject: [PATCH] Removed few commeneted out lines and documented few funtions --- diff --git a/src/barchart/qbarseries.cpp b/src/barchart/qbarseries.cpp index d0c61e0..0a39fee 100644 --- a/src/barchart/qbarseries.cpp +++ b/src/barchart/qbarseries.cpp @@ -274,6 +274,10 @@ BarChartModel& QBarSeries::modelInternal() return *m_internalModel; } +/*! + \fn bool QBarSeries::setModel(QAbstractItemModel *model) + Sets the \a model to be used as a data source + */ bool QBarSeries::setModel(QAbstractItemModel *model) { // disconnect signals from old model diff --git a/src/barchart/qbarseries.h b/src/barchart/qbarseries.h index 3444b0c..9428738 100644 --- a/src/barchart/qbarseries.h +++ b/src/barchart/qbarseries.h @@ -58,7 +58,6 @@ public: void setLabelsVisible(bool visible = true); bool setModel(QAbstractItemModel *model); -// QAbstractItemModel *modelExt() { return m_model; } void setModelMapping(int categories, int bottomBoundry, int topBoundry, Qt::Orientation orientation = Qt::Vertical); void setModelMappingShift(int first, int count); diff --git a/src/piechart/qpieseries.cpp b/src/piechart/qpieseries.cpp index 51f16ff..96f014e 100644 --- a/src/piechart/qpieseries.cpp +++ b/src/piechart/qpieseries.cpp @@ -630,6 +630,10 @@ qreal QPieSeries::total() const \sa pieSize(), setPieSize() */ +/*! + \fn bool QPieSeries::setModel(QAbstractItemModel *model) + Sets the \a model to be used as a data source + */ bool QPieSeries::setModel(QAbstractItemModel* model) { Q_D(QPieSeries); diff --git a/src/qseries.h b/src/qseries.h index 0d368ba..b968e34 100644 --- a/src/qseries.h +++ b/src/qseries.h @@ -54,6 +54,7 @@ public: // TODO virtual bool setModel(QAbstractItemModel* /*model*/) { return false; } QAbstractItemModel* model() const { return m_model; } + void setName(QString name) { m_name = name; } QString name() const { return m_name; } diff --git a/src/xychart/qxyseries.h b/src/xychart/qxyseries.h index 1bce264..e802790 100644 --- a/src/xychart/qxyseries.h +++ b/src/xychart/qxyseries.h @@ -62,7 +62,6 @@ public: QBrush brush() const {return m_brush;} bool setModel(QAbstractItemModel *model); -// QAbstractItemModel* model() const { return m_model; } virtual void setModelMapping(int modelX, int modelY, Qt::Orientation orientation = Qt::Vertical); virtual void setModelMappingRange(int first, int count = 0);