GobChartsWidget
1.0
|
Controls and manages valid model rows. More...
#include <gobchartsvaliditems.h>
Public Member Functions | |
GobChartsValidItems (QObject *parent=0) | |
Constructor. | |
virtual | ~GobChartsValidItems () |
Destructor. | |
void | addValidItem (int row, QString category, qreal data) |
Creates and maps a category/value pair to its corresponding row. | |
void | clear () |
Delete all valid items from the map. | |
const QList< int > | validRows () const |
Returns a list of all rows containing valid items. | |
QString | category (int row) const |
Returns the category corresponding to a specific row. | |
qreal | data (int row) const |
Returns the value corresponding to a specific row. | |
int | size () const |
Returns the number of valid items in the map. | |
Controls and manages valid model rows.
GobChartsValidItems keeps track of which data rows and columns contain valid entries (non-empty, legal types, etc) and provides access to the valid values and category names based on the row number.
Definition at line 39 of file gobchartsvaliditems.h.
void GobChartsValidItems::addValidItem | ( | int | row, |
QString | category, | ||
qreal | data | ||
) |
Creates and maps a category/value pair to its corresponding row.
Definition at line 41 of file gobchartsvaliditems.cpp.
QString GobChartsValidItems::category | ( | int | row | ) | const |
Returns the category corresponding to a specific row.
Definition at line 65 of file gobchartsvaliditems.cpp.
void GobChartsValidItems::clear | ( | ) |
Delete all valid items from the map.
Definition at line 51 of file gobchartsvaliditems.cpp.
qreal GobChartsValidItems::data | ( | int | row | ) | const |
Returns the value corresponding to a specific row.
Definition at line 77 of file gobchartsvaliditems.cpp.
int GobChartsValidItems::size | ( | ) | const |
Returns the number of valid items in the map.
Definition at line 89 of file gobchartsvaliditems.cpp.
const QList< int > GobChartsValidItems::validRows | ( | ) | const |
Returns a list of all rows containing valid items.
Definition at line 58 of file gobchartsvaliditems.cpp.