summaryrefslogtreecommitdiffstats
path: root/src/barchart/qbarset.h
diff options
context:
space:
mode:
authorsauimone <samu.uimonen@digia.com>2012-05-15 16:32:56 +0300
committersauimone <samu.uimonen@digia.com>2012-05-15 16:33:28 +0300
commit494db513d752ba894f317e199f0063e13525e985 (patch)
tree9e73657edd3accdcf046989548cae808ad39095d /src/barchart/qbarset.h
parent740d4c3988cefd9f6a87d8f387513c7980df69b7 (diff)
new series: groupedbarseries
Diffstat (limited to 'src/barchart/qbarset.h')
-rw-r--r--src/barchart/qbarset.h18
1 files changed, 7 insertions, 11 deletions
diff --git a/src/barchart/qbarset.h b/src/barchart/qbarset.h
index 3f08fae5..3235c089 100644
--- a/src/barchart/qbarset.h
+++ b/src/barchart/qbarset.h
@@ -41,23 +41,19 @@ public:
void setName(const QString name);
QString name() const;
-// TODO:
-// void append(const QPointF value); // Appends bar with x-value
-// void append(const QList<QPointF> value); // Same with list
+ void append(const QPointF value); // Appends bar with x-value
+ void append(const QList<QPointF> values); // Same with list
void append(const qreal value); // TODO: change so, that count becomes x-value
+ void append(const QList<qreal> values); // Append list of values. Using index as x-value
-// TODO:
-// void append(const QList<qreal> values); // Append list of values. Using index as x-value
-
- QBarSet& operator << (const qreal &value); // TODO: change implementations so, that count becomes x-value
-// TODO:
-// QBarSet& operator << (const QPointF &value); // Appends bar with x-value
+ QBarSet& operator << (const qreal &value); // TODO: change implementations so, that count becomes x-value
+ QBarSet& operator << (const QPointF &value); // Appends bar with x-value
void insert(const int index, const qreal value); // TODO: internal reindexing (what happens, if there are points with real x values?)
void remove(const int index); // TODO: internal reindexing (what happens, if there are points with real x values?)
void replace(const int index, const qreal value);
- qreal at(const int index) const;
- qreal operator [] (int index) const;
+ QPointF at(const int index) const;
+ QPointF operator [] (const int index) const;
int count() const;
qreal sum() const;