##// END OF EJS Templates
Mac specific .xcodeproj and Info.plist to .gitignore
Mac specific .xcodeproj and Info.plist to .gitignore

File last commit:

r99:f2e3978c70a1
r112:e9f38bd42a85
Show More
barchartseries.h
45 lines | 986 B | text/x-c | CLexer
sauimone
Integrating bar chart. Cleaned up old implementation. TODO: show this in test application. how?
r56 #ifndef BARCHARTSERIES_H
#define BARCHARTSERIES_H
#include <QList>
sauimone
Improved bar chart series
r71 #include <QAbstractItemModel>
sauimone
Integrating bar chart. Cleaned up old implementation. TODO: show this in test application. how?
r56 #include "qchartseries.h"
#include "qchartglobal.h"
sauimone
BarGroup and Bar as ChartItems instead of GraphicItems
r74 // TODO: Can this class be combined with series?
class BarGroup;
sauimone
Integrating bar chart. Cleaned up old implementation. TODO: show this in test application. how?
r56 QTCOMMERCIALCHART_BEGIN_NAMESPACE
// Container for series
class QTCOMMERCIALCHART_EXPORT BarChartSeries : public QChartSeries
{
sauimone
Improved bar chart series
r71 Q_OBJECT
sauimone
Integrating bar chart. Cleaned up old implementation. TODO: show this in test application. how?
r56 public:
sauimone
Refactored series creation.
r62 BarChartSeries(QObject* parent=0);
sauimone
Integrating bar chart. Cleaned up old implementation. TODO: show this in test application. how?
r56
// from QChartSeries
virtual QChartSeriesType type() const { return QChartSeries::SeriesTypeBar; }
sauimone
correct drawing for barchart
r82 // TODO: Better data model?
sauimone
Improved bar chart series
r71 virtual bool setData(QAbstractItemModel* model);
sauimone
Refactored series creation.
r62
sauimone
Integrating bar chart. Cleaned up old implementation. TODO: show this in test application. how?
r56 // Methods to find out minimum and maximum values of data
int min();
int max();
sauimone
bar chart layout fixing
r99 int countRows();
sauimone
added stacked bar chart
r94 int countColumns(); // Count items in one series.
sauimone
Improved bar chart series
r71 int countTotalItems();
sauimone
added stacked bar chart
r94 int valueAt(int row, int column);
sauimone
Improved bar chart series
r71
public Q_SLOTS:
sauimone
Integrating bar chart. Cleaned up old implementation. TODO: show this in test application. how?
r56 private:
sauimone
Improved bar chart series
r71 QAbstractItemModel* mModel;
sauimone
BarGroup and Bar as ChartItems instead of GraphicItems
r74 BarGroup* mBarGroup;
sauimone
Integrating bar chart. Cleaned up old implementation. TODO: show this in test application. how?
r56 };
QTCOMMERCIALCHART_END_NAMESPACE
#endif // BARCHARTSERIES_H