##// END OF EJS Templates
fixed bug in category implementation. model now owns the category and sets
fixed bug in category implementation. model now owns the category and sets

File last commit:

r173:5bd6f6e4373b
r173:5bd6f6e4373b
Show More
barchartseries.cpp
59 lines | 984 B | text/x-c | CppLexer
/ src / barchart / barchartseries.cpp
sauimone
Improved bar chart series
r71 #include <QDebug>
sauimone
Integrating bar chart. Cleaned up old implementation. TODO: show this in test application. how?
r56 #include "barchartseries.h"
sauimone
removed barchartseriesbase. functionality is now in model
r172 #include "qbarcategory.h"
#include "qbarset.h"
#include "barchartmodel_p.h"
sauimone
refactored barcharts. layout to derived classess other funtionality to base class
r126
sauimone
Integrating bar chart. Cleaned up old implementation. TODO: show this in test application. how?
r56 QTCOMMERCIALCHART_BEGIN_NAMESPACE
sauimone
fixed bug in category implementation. model now owns the category and sets
r173 BarChartSeries::BarChartSeries(QBarCategory *category, QObject *parent)
sauimone
removed barchartseriesbase. functionality is now in model
r172 : QChartSeries(parent)
,mModel(new BarChartModel(category, this))
sauimone
Improved bar chart series
r71 {
}
sauimone
fixed bug in category implementation. model now owns the category and sets
r173 void BarChartSeries::addBarSet(QBarSet *set)
sauimone
Barset and barcategory implememtation. Updated test application
r171 {
sauimone
removed barchartseriesbase. functionality is now in model
r172 mModel->addBarSet(set);
sauimone
Barset and barcategory implememtation. Updated test application
r171 }
sauimone
fixed bug in category implementation. model now owns the category and sets
r173 void BarChartSeries::removeBarSet(QBarSet *set)
sauimone
Barset and barcategory implememtation. Updated test application
r171 {
sauimone
removed barchartseriesbase. functionality is now in model
r172 mModel->removeBarSet(set);
}
int BarChartSeries::countCategories()
{
return mModel->countCategories();
}
qreal BarChartSeries::min()
{
return mModel->min();
}
qreal BarChartSeries::max()
{
return mModel->max();
sauimone
Barset and barcategory implememtation. Updated test application
r171 }
sauimone
removed barchartseriesbase. functionality is now in model
r172 qreal BarChartSeries::valueAt(int set, int category)
{
return mModel->valueAt(set,category);
}
qreal BarChartSeries::maxCategorySum()
{
return mModel->maxCategorySum();
}
BarChartModel& BarChartSeries::model()
{
return *mModel;
}
sauimone
Improved bar chart series
r71 #include "moc_barchartseries.cpp"
sauimone
Integrating bar chart. Cleaned up old implementation. TODO: show this in test application. how?
r56 QTCOMMERCIALCHART_END_NAMESPACE