List model for QObject properties.
More...
#include <ObjectPropertyModel.h>
|
| | 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.
|
| |
| Q_SIGNAL void | changed (QObject *obj, int propertyIndex, bool dynamic) |
| | Signals a change of the object's property.
|
| |
| Q_SIGNAL void | addLineEditActions (QLineEdit *line_edit, QObject *obj, int prop_idx, bool dynamic) const |
| |
List model for QObject properties.
◆ ObjectPropertyModel()
| sf::ObjectPropertyModel::ObjectPropertyModel |
( |
QObject * |
parent = nullptr | ) |
|
|
explicit |
◆ addLineEditActions()
| Q_SIGNAL void sf::ObjectPropertyModel::addLineEditActions |
( |
QLineEdit * |
line_edit, |
|
|
QObject * |
obj, |
|
|
int |
prop_idx, |
|
|
bool |
dynamic |
|
) |
| const |
- Parameters
-
| line_edit | Line edit created for this property. |
| obj | Object concerned. |
| prop_idx | Index of the property |
| dynamic | Property is a dynamic one. |
◆ changed()
| Q_SIGNAL void sf::ObjectPropertyModel::changed |
( |
QObject * |
obj, |
|
|
int |
propertyIndex, |
|
|
bool |
dynamic |
|
) |
| |
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: