##// END OF EJS Templates
Removed unused DeclarativeSeries class
Removed unused DeclarativeSeries class

File last commit:

r297:8c95548bc716
r311:e1f0c8c24a70
Show More
qbarcategory.cpp
49 lines | 994 B | text/x-c | CppLexer
#include "qbarcategory.h"
QTCOMMERCIALCHART_BEGIN_NAMESPACE
/*!
\class QBarCategory
\brief QtCommercial chart API.
QBarCategory is a container for labels of various bar charts. Before the
bar chart can be constructed, the categories must be defined. This is done by
creating a QBarCategory class and appending the labels of categories to it.
The QBarCategory is then given to QBarSeries class.
*/
/*!
Constructs the category container
*/
QBarCategory::QBarCategory()
{
}
/*!
Appends the \a label in the category.
*/
QBarCategory& QBarCategory::operator << (const QString &label)
{
mList.append(label);
return *this;
}
/*!
Retrurns number of labels in category
*/
int QBarCategory::count()
{
return mList.count();
}
/*!
Retruns the label of category defined by index \a category
*/
QString QBarCategory::label(int category)
{
return mList.at(category);
}
// TODO?:
//#include "moc_qbarcategory.cpp"
QTCOMMERCIALCHART_END_NAMESPACE