mirror of
https://github.com/AxioDL/PrimeWorldEditor.git
synced 2025-07-14 09:05:58 +00:00
CPropertyView: Make use of in-class initializers where applicable
This commit is contained in:
parent
32a57ee15f
commit
34db18aff5
@ -9,7 +9,6 @@
|
|||||||
|
|
||||||
CPropertyView::CPropertyView(QWidget *pParent)
|
CPropertyView::CPropertyView(QWidget *pParent)
|
||||||
: QTreeView(pParent)
|
: QTreeView(pParent)
|
||||||
, mpMenuProperty(nullptr)
|
|
||||||
{
|
{
|
||||||
mpModel = new CPropertyModel(this);
|
mpModel = new CPropertyModel(this);
|
||||||
mpDelegate = new CPropertyDelegate(this);
|
mpDelegate = new CPropertyDelegate(this);
|
||||||
|
@ -14,7 +14,7 @@ class CPropertyView : public QTreeView
|
|||||||
CPropertyDelegate* mpDelegate;
|
CPropertyDelegate* mpDelegate;
|
||||||
CScriptObject* mpObject;
|
CScriptObject* mpObject;
|
||||||
|
|
||||||
IProperty* mpMenuProperty;
|
IProperty* mpMenuProperty = nullptr;
|
||||||
QAction* mpShowNameValidityAction;
|
QAction* mpShowNameValidityAction;
|
||||||
QAction* mpEditTemplateAction;
|
QAction* mpEditTemplateAction;
|
||||||
QAction* mpGenNamesForPropertyAction;
|
QAction* mpGenNamesForPropertyAction;
|
||||||
@ -22,10 +22,11 @@ class CPropertyView : public QTreeView
|
|||||||
QAction* mpGenNamesForChildrenAction;
|
QAction* mpGenNamesForChildrenAction;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
CPropertyView(QWidget* pParent = 0);
|
explicit CPropertyView(QWidget* pParent = nullptr);
|
||||||
void setModel(QAbstractItemModel* pModel);
|
|
||||||
bool event(QEvent* pEvent);
|
void setModel(QAbstractItemModel* pModel) override;
|
||||||
int sizeHintForColumn(int Column) const;
|
bool event(QEvent* pEvent) override;
|
||||||
|
int sizeHintForColumn(int Column) const override;
|
||||||
|
|
||||||
void SetEditor(IEditor* pEditor);
|
void SetEditor(IEditor* pEditor);
|
||||||
void ClearProperties();
|
void ClearProperties();
|
||||||
@ -33,7 +34,7 @@ public:
|
|||||||
void SetInstance(CScriptObject* pObj);
|
void SetInstance(CScriptObject* pObj);
|
||||||
void UpdateEditorProperties(const QModelIndex& rkParent);
|
void UpdateEditorProperties(const QModelIndex& rkParent);
|
||||||
|
|
||||||
inline CPropertyModel* PropertyModel() const { return mpModel; }
|
CPropertyModel* PropertyModel() const { return mpModel; }
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
void SetPersistentEditors(const QModelIndex& rkIndex);
|
void SetPersistentEditors(const QModelIndex& rkIndex);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user