##// END OF EJS Templates
Fixes line uder grid issue
Fixes line uder grid issue

File last commit:

r173:5bd6f6e4373b
r190:3ea3ba4a3395
Show More
stackedbarchartseries.h
53 lines | 1.3 KiB | text/x-c | CLexer
/ src / barchart / stackedbarchartseries.h
#ifndef STACKEDBARCHARTSERIES_H
#define STACKEDBARCHARTSERIES_H
#include <QList>
#include <QAbstractItemModel>
#include "qchartseries.h"
QTCOMMERCIALCHART_BEGIN_NAMESPACE
class StackedBarGroup;
class QBarCategory;
class QBarSet;
class BarChartModel;
class QTCOMMERCIALCHART_EXPORT StackedBarChartSeries : public QChartSeries
{
Q_OBJECT
public:
StackedBarChartSeries(QBarCategory *category, QObject* parent=0);
// from QChartSeries
virtual QChartSeriesType type() const { return QChartSeries::SeriesTypeStackedBar; }
void addBarSet(QBarSet *set); // Takes ownership
void removeBarSet(QBarSet *set); // Also deletes the set, if set is owned.
//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)
int countCategories();
qreal min();
qreal max();
qreal valueAt(int set, int category);
qreal maxCategorySum();
BarChartModel& model();
signals:
void changed(int index);
public Q_SLOTS:
private:
StackedBarGroup* mStackedBarGroup;
BarChartModel* mModel;
};
QTCOMMERCIALCHART_END_NAMESPACE
#endif // STACKEDBARCHARTSERIES_H