From ea666328ae952110ac14623371f7de19932dd586 2012-03-15 08:38:23 From: sauimone Date: 2012-03-15 08:38:23 Subject: [PATCH] removed old legend prototry functions --- diff --git a/src/barchart/barchartmodel.cpp b/src/barchart/barchartmodel.cpp index 0f9c14e..a252543 100644 --- a/src/barchart/barchartmodel.cpp +++ b/src/barchart/barchartmodel.cpp @@ -39,19 +39,6 @@ QList BarChartModel::barSets() return mDataModel; } -QList BarChartModel::legendEntries() -{ - QList legend; - - for (int i=0; iname(); - l.mBrush = mDataModel.at(i)->brush(); - legend.append(l); - } - return legend; -} - int BarChartModel::barsetCount() { return mDataModel.count(); diff --git a/src/barchart/barchartmodel_p.h b/src/barchart/barchartmodel_p.h index be5764f..7659d95 100644 --- a/src/barchart/barchartmodel_p.h +++ b/src/barchart/barchartmodel_p.h @@ -25,8 +25,6 @@ public: QBarSet *setAt(int index); QList barSets(); - QList legendEntries(); - int barsetCount(); // Number of sets in model int categoryCount(); // Number of categories diff --git a/src/barchart/qbarseries.cpp b/src/barchart/qbarseries.cpp index a8b92a1..4af743c 100644 --- a/src/barchart/qbarseries.cpp +++ b/src/barchart/qbarseries.cpp @@ -103,14 +103,6 @@ QBarSet* QBarSeries::barsetAt(int index) } /*! - Returns legend of series. -*/ -QList QBarSeries::legendEntries() -{ - return mModel->legendEntries(); -} - -/*! \internal \a category */ QString QBarSeries::categoryName(int category) diff --git a/src/barchart/qbarseries.h b/src/barchart/qbarseries.h index 6cdec6b..7998561 100644 --- a/src/barchart/qbarseries.h +++ b/src/barchart/qbarseries.h @@ -24,7 +24,6 @@ public: int barsetCount(); int categoryCount(); QList barSets(); - QList legendEntries(); bool setModel(QAbstractItemModel* model); QAbstractItemModel* modelExt() {return m_model;} diff --git a/src/qseries.h b/src/qseries.h index 46a5e31..315d260 100644 --- a/src/qseries.h +++ b/src/qseries.h @@ -25,11 +25,11 @@ public: // Helper class to contain legend and color for it // TODO: This is actually quite close to current LegendMarker.. combine them? - class LegendEntry { +/* class LegendEntry { public: QString mName; - QBrush mBrush; - }; + /QBrush mBrush; + };*/ protected: QSeries(QObject *parent = 0) : QObject(parent) {} @@ -41,9 +41,6 @@ public: // TODO virtual bool setModel(QAbstractItemModel* /*model*/) { return false; } - // TODO: consider this - virtual QList legendEntries() { QList l; return l; } - void setTitle(QString title) { m_title = title; } QString title() { return m_title; }