List model for QObject properties.
More...
#include <ObjectPropertyModel.h>
|
void | changed (QObject *obj, int propertyIndex, bool dynamic) |
| Signals a change of the object's property.
|
|
void | addLineEditActions (QLineEdit *lineEdit, QObject *obj, int propertyIndex, bool dynamic) const |
|
|
| ObjectPropertyModel (QObject *parent=nullptr) |
| Constructor.
|
|
void | setTarget (QObject *obj) |
| ???
|
|
void | setDelegates (QAbstractItemView *view) |
| ???
|
|
void | refresh () |
| Called to refresh the attached viewer.
|
|
QVariant | headerData (int section, Qt::Orientation orientation, int role) const override |
| Overridden from base class to provide column display names.
|
|
int | rowCount (const QModelIndex &parent) const override |
| Overridden from base class to provide the amount of rows.
|
|
QVariant | data (const QModelIndex &index, int role) const override |
| Overridden from base class to provide the data to present.
|
|
int | columnCount (const QModelIndex &parent) const override |
| Overridden from base class to provide the amount of columns.
|
|
Qt::ItemFlags | flags (const QModelIndex &index) const override |
| Overridden from base class to provide flags on an item by index.
|
|
bool | setData (const QModelIndex &index, const QVariant &value, int role) override |
| Overridden from base class to provide assignment of an item when edited.
|
|
List model for QObject properties.
◆ ObjectPropertyModel()
sf::ObjectPropertyModel::ObjectPropertyModel |
( |
QObject * |
parent = nullptr | ) |
|
|
explicit |
◆ addLineEditActions
void sf::ObjectPropertyModel::addLineEditActions |
( |
QLineEdit * |
lineEdit, |
|
|
QObject * |
obj, |
|
|
int |
propertyIndex, |
|
|
bool |
dynamic |
|
) |
| const |
|
signal |
- Parameters
-
lineEdit | Line edit created for this property. |
obj | Object concerned. |
propertyIndex | Index of the property |
dynamic | Property is a dynamic one. |
◆ changed
void sf::ObjectPropertyModel::changed |
( |
QObject * |
obj, |
|
|
int |
propertyIndex, |
|
|
bool |
dynamic |
|
) |
| |
|
signal |
Signals a change of the object's property.
- Parameters
-
obj | Object concerned. |
propertyIndex | Index of the property |
dynamic | Property is a dynamic one. |
◆ columnCount()
int sf::ObjectPropertyModel::columnCount |
( |
const QModelIndex & |
parent | ) |
const |
|
override |
Overridden from base class to provide the amount of columns.
◆ data()
QVariant sf::ObjectPropertyModel::data |
( |
const QModelIndex & |
index, |
|
|
int |
role |
|
) |
| const |
|
override |
Overridden from base class to provide the data to present.
◆ flags()
Qt::ItemFlags sf::ObjectPropertyModel::flags |
( |
const QModelIndex & |
index | ) |
const |
|
override |
Overridden from base class to provide flags on an item by index.
◆ headerData()
QVariant sf::ObjectPropertyModel::headerData |
( |
int |
section, |
|
|
Qt::Orientation |
orientation, |
|
|
int |
role |
|
) |
| const |
|
override |
Overridden from base class to provide column display names.
◆ refresh()
void sf::ObjectPropertyModel::refresh |
( |
| ) |
|
Called to refresh the attached viewer.
◆ rowCount()
int sf::ObjectPropertyModel::rowCount |
( |
const QModelIndex & |
parent | ) |
const |
|
override |
Overridden from base class to provide the amount of rows.
◆ setData()
bool sf::ObjectPropertyModel::setData |
( |
const QModelIndex & |
index, |
|
|
const QVariant & |
value, |
|
|
int |
role |
|
) |
| |
|
override |
Overridden from base class to provide assignment of an item when edited.
◆ setDelegates()
void sf::ObjectPropertyModel::setDelegates |
( |
QAbstractItemView * |
view | ) |
|
◆ setTarget()
void sf::ObjectPropertyModel::setTarget |
( |
QObject * |
obj | ) |
|
The documentation for this class was generated from the following file: