|
Aeon Engine c550894
AeonGames Open Source Game Engine
|
Custom item delegate for editing component properties in views. More...
#include <C:/Code/AeonEngine/tools/worldeditor/delegates/PropertyDelegate.h>


Public Member Functions | |
| PropertyDelegate (QObject *parent=nullptr) | |
| Construct the property delegate. | |
| QWidget * | createEditor (QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const override |
| Create an editor widget for the given model index. | |
| void | setEditorData (QWidget *editor, const QModelIndex &index) const override |
| Set the editor widget data from the model. | |
| void | setModelData (QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const override |
| Write the editor widget data back to the model. | |
| void | updateEditorGeometry (QWidget *editor, const QStyleOptionViewItem &option, const QModelIndex &index) const override |
| Update the editor geometry to match the view item area. | |
Custom item delegate for editing component properties in views.
Definition at line 24 of file PropertyDelegate.h.
| AeonGames::PropertyDelegate::PropertyDelegate | ( | QObject * | parent = nullptr | ) |
Construct the property delegate.
| parent | Parent object. |
Definition at line 28 of file PropertyDelegate.cpp.
|
override |
Create an editor widget for the given model index.
| parent | Parent widget for the editor. |
| option | Style options for the item. |
| index | Model index of the item to edit. |
Definition at line 73 of file PropertyDelegate.cpp.
|
override |
Set the editor widget data from the model.
| editor | Editor widget. |
| index | Model index to read from. |
Definition at line 106 of file PropertyDelegate.cpp.
|
override |
Write the editor widget data back to the model.
Definition at line 148 of file PropertyDelegate.cpp.
|
override |
Update the editor geometry to match the view item area.
| editor | Editor widget. |
| option | Style options for the item. |
| index | Model index. |
Definition at line 191 of file PropertyDelegate.cpp.