##// END OF EJS Templates
Revert "Fixes line uder grid issue"...
Revert "Fixes line uder grid issue" This reverts commit 3ea3ba4a33950ea7420e16913d228ed53fe566c3.

File last commit:

r173:5bd6f6e4373b
r191:0b54368f72bb
Show More
percentbarchartseries.cpp
62 lines | 1.1 KiB | text/x-c | CppLexer
/ src / barchart / percentbarchartseries.cpp
sauimone
percent bar chart
r101 #include "percentbarchartseries.h"
#include <limits.h>
#include <QDebug>
#include "percentbarchartseries.h"
sauimone
removed barchartseriesbase. functionality is now in model
r172 #include "qbarset.h"
#include "qbarcategory.h"
#include "barchartmodel_p.h"
sauimone
percent bar chart
r101
QTCOMMERCIALCHART_BEGIN_NAMESPACE
sauimone
fixed bug in category implementation. model now owns the category and sets
r173 PercentBarChartSeries::PercentBarChartSeries(QBarCategory *category, QObject *parent)
sauimone
removed barchartseriesbase. functionality is now in model
r172 : QChartSeries(parent)
,mModel(new BarChartModel(category, this))
sauimone
percent bar chart
r101 {
}
sauimone
fixed bug in category implementation. model now owns the category and sets
r173 void PercentBarChartSeries::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 PercentBarChartSeries::removeBarSet(QBarSet *set)
sauimone
Barset and barcategory implememtation. Updated test application
r171 {
sauimone
removed barchartseriesbase. functionality is now in model
r172 mModel->removeBarSet(set);
sauimone
Barset and barcategory implememtation. Updated test application
r171 }
sauimone
removed barchartseriesbase. functionality is now in model
r172 int PercentBarChartSeries::countCategories()
{
return mModel->countCategories();
}
qreal PercentBarChartSeries::min()
{
return mModel->min();
}
qreal PercentBarChartSeries::max()
{
return mModel->max();
}
qreal PercentBarChartSeries::valueAt(int set, int category)
{
return mModel->valueAt(set,category);
}
qreal PercentBarChartSeries::maxCategorySum()
{
return mModel->maxCategorySum();
}
BarChartModel& PercentBarChartSeries::model()
{
return *mModel;
}
sauimone
percent bar chart
r101 #include "moc_percentbarchartseries.cpp"
QTCOMMERCIALCHART_END_NAMESPACE