#include <model_GraphProperties.h>
Public Member Functions | |
GraphPropertiesModel (QObject *parent=0) | |
int | rowCount (const QModelIndex &parent=QModelIndex()) const |
int | columnCount (const QModelIndex &parent=QModelIndex()) const |
QVariant | data (const QModelIndex &index, int role) const |
QVariant | headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const |
void | setDataSource (QObject *dataSource) |
bool | setData (const QModelIndex &index, const QVariant &value, int role=Qt::EditRole) |
Qt::ItemFlags | flags (const QModelIndex &index) const |
void | addDynamicProperty (QString name, QVariant value, QObject *obj, bool isGlobal) |
Definition at line 30 of file model_GraphProperties.h.
GraphPropertiesModel::GraphPropertiesModel | ( | QObject * | parent = 0 |
) | [explicit] |
Default Constructor.
parent | the QObject that owns this Model. |
Definition at line 6 of file model_GraphProperties.cpp.
void GraphPropertiesModel::addDynamicProperty | ( | QString | name, | |
QVariant | value, | |||
QObject * | obj, | |||
bool | isGlobal | |||
) |
Add properti to data source and insert a new row,
Definition at line 165 of file model_GraphProperties.cpp.
int GraphPropertiesModel::columnCount | ( | const QModelIndex & | parent = QModelIndex() |
) | const |
Gives the number or columns on the model.
parent | a default constructed, unused, QModelIndex.
|
Definition at line 26 of file model_GraphProperties.cpp.
QVariant GraphPropertiesModel::data | ( | const QModelIndex & | index, | |
int | role | |||
) | const |
Return the data of a item on the model.
index | the position of the item.
|
Definition at line 33 of file model_GraphProperties.cpp.
Qt::ItemFlags GraphPropertiesModel::flags | ( | const QModelIndex & | index | ) | const |
Definition at line 123 of file model_GraphProperties.cpp.
QVariant GraphPropertiesModel::headerData | ( | int | section, | |
Qt::Orientation | orientation, | |||
int | role = Qt::DisplayRole | |||
) | const |
some information that goes on the header.
section | the place where the data will be.
|
Definition at line 70 of file model_GraphProperties.cpp.
int GraphPropertiesModel::rowCount | ( | const QModelIndex & | parent = QModelIndex() |
) | const |
Gives the number of rows on the model.
parent | a default constructed, unused, QModelIndex.
|
Definition at line 13 of file model_GraphProperties.cpp.
bool GraphPropertiesModel::setData | ( | const QModelIndex & | index, | |
const QVariant & | value, | |||
int | role = Qt::EditRole | |||
) |
Definition at line 139 of file model_GraphProperties.cpp.
void GraphPropertiesModel::setDataSource | ( | QObject * | dataSource | ) |
recreates the information on the model based on another datasource.
dataSource | the new dataSource of the model. |
Definition at line 93 of file model_GraphProperties.cpp.