##// END OF EJS Templates
toggling of floating values. still bit buggy
toggling of floating values. still bit buggy

File last commit:

r231:da9e6c0e9029
r267:8eda47151036
Show More
qpercentbarchartseries.h
55 lines | 1.3 KiB | text/x-c | CLexer
/ src / barchart / qpercentbarchartseries.h
sauimone
percent bar chart
r101 #ifndef PERCENTBARCHARTSERIES_H
#define PERCENTBARCHARTSERIES_H
#include <QList>
#include <QAbstractItemModel>
sauimone
removed barchartseriesbase. functionality is now in model
r172 #include "qchartseries.h"
sauimone
percent bar chart
r101
QTCOMMERCIALCHART_BEGIN_NAMESPACE
sauimone
removed barchartseriesbase. functionality is now in model
r172 class QBarCategory;
class QBarSet;
class BarChartModel;
sauimone
percent bar chart
r101
sauimone
Common naming convention for barcharts
r216 class QTCOMMERCIALCHART_EXPORT QPercentBarChartSeries : public QChartSeries
sauimone
percent bar chart
r101 {
Q_OBJECT
public:
sauimone
Common naming convention for barcharts
r216 QPercentBarChartSeries(QBarCategory *category, QObject* parent=0);
sauimone
percent bar chart
r101
sauimone
refactored barcharts. layout to derived classess other funtionality to base class
r126 // from BarChartSeriesBase
sauimone
percent bar chart
r101 virtual QChartSeriesType type() const { return QChartSeries::SeriesTypePercentBar; }
sauimone
fixed bug in category implementation. model now owns the category and sets
r173 void addBarSet(QBarSet *set); // Takes ownership
void removeBarSet(QBarSet *set); // Also deletes the set, if set is owned.
sauimone
Added pen & brush to QBarSet
r214 int countSets();
QBarSet* nextSet(bool first=false); // Returns first set, if called with true
sauimone
Barset and barcategory implememtation. Updated test application
r171
sauimone
fixed bug in category implementation. model now owns the category and sets
r173 //TODO:
//QList<QString> legend(); // Returns legend of series (ie. names of all sets in series)
// TODO: Functions below this are not part of api and will be moved
// to private implementation, when we start using it (not part of api)
sauimone
removed barchartseriesbase. functionality is now in model
r172 int countCategories();
qreal min();
qreal max();
qreal valueAt(int set, int category);
qreal maxCategorySum();
BarChartModel& model();
signals:
void changed(int index);
sauimone
percent bar chart
r101 public Q_SLOTS:
sauimone
removed barchartseriesbase. functionality is now in model
r172
sauimone
percent bar chart
r101 private:
sauimone
removed barchartseriesbase. functionality is now in model
r172 BarChartModel* mModel;
sauimone
percent bar chart
r101 };
QTCOMMERCIALCHART_END_NAMESPACE
#endif // PERCENTBARCHARTSERIES_H