##// END OF EJS Templates

File last commit:

r214:84a6aaeda27a
r238:7ad0e7194aa9 merge
Show More
qbarset.cpp
63 lines | 812 B | text/x-c | CppLexer
sauimone
proof of concept implementation for barset and barcategory
r169 #include "qbarset.h"
QTCOMMERCIALCHART_BEGIN_NAMESPACE
QBarSet::QBarSet()
{
}
void QBarSet::setName(QString name)
{
mName = name;
}
sauimone
Barset and barcategory implememtation. Updated test application
r171 QString QBarSet::name()
{
return mName;
}
sauimone
proof of concept implementation for barset and barcategory
r169
QBarSet& QBarSet::operator << (const qreal &value)
{
mValues.append(value);
return *this;
}
sauimone
Barset and barcategory implememtation. Updated test application
r171 int QBarSet::count()
{
return mValues.count();
}
qreal QBarSet::valueAt(int index)
{
return mValues.at(index);
}
sauimone
brush support for bargroups
r183 void QBarSet::setValue(int index, qreal value)
{
mValues.replace(index,value);
}
sauimone
Added pen & brush to QBarSet
r214 void QBarSet::setPen(const QPen& pen)
{
mPen = pen;
}
const QPen& QBarSet::pen() const
{
return mPen;
}
void QBarSet::setBrush(const QBrush& brush)
{
mBrush = brush;
}
const QBrush& QBarSet::brush() const
{
return mBrush;
}
sauimone
fixed bug in category implementation. model now owns the category and sets
r173 //TODO?:
//#include "moc_qbarset.cpp"
sauimone
proof of concept implementation for barset and barcategory
r169 QTCOMMERCIALCHART_END_NAMESPACE