WEditorProperties: Make use of in-class initializers where applicable
This commit is contained in:
parent
012faba4cc
commit
d5f7699f34
|
@ -2,11 +2,8 @@
|
||||||
#include "Editor/Undo/CEditScriptPropertyCommand.h"
|
#include "Editor/Undo/CEditScriptPropertyCommand.h"
|
||||||
#include <Core/Resource/Script/CScriptLayer.h>
|
#include <Core/Resource/Script/CScriptLayer.h>
|
||||||
|
|
||||||
WEditorProperties::WEditorProperties(QWidget *pParent /*= 0*/)
|
WEditorProperties::WEditorProperties(QWidget *pParent)
|
||||||
: QWidget(pParent)
|
: QWidget(pParent)
|
||||||
, mpEditor(nullptr)
|
|
||||||
, mpDisplayNode(nullptr)
|
|
||||||
, mHasEditedName(false)
|
|
||||||
{
|
{
|
||||||
mpInstanceInfoLabel = new QLabel;
|
mpInstanceInfoLabel = new QLabel;
|
||||||
mpInstanceInfoLabel->setText("<i>[No selection]</i>");
|
mpInstanceInfoLabel->setText("<i>[No selection]</i>");
|
||||||
|
|
|
@ -14,8 +14,8 @@
|
||||||
class WEditorProperties : public QWidget
|
class WEditorProperties : public QWidget
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
CWorldEditor* mpEditor;
|
CWorldEditor* mpEditor = nullptr;
|
||||||
CSceneNode* mpDisplayNode;
|
CSceneNode* mpDisplayNode = nullptr;
|
||||||
|
|
||||||
QVBoxLayout* mpMainLayout;
|
QVBoxLayout* mpMainLayout;
|
||||||
|
|
||||||
|
@ -30,10 +30,11 @@ class WEditorProperties : public QWidget
|
||||||
QComboBox* mpLayersComboBox;
|
QComboBox* mpLayersComboBox;
|
||||||
QHBoxLayout* mpLayersLayout;
|
QHBoxLayout* mpLayersLayout;
|
||||||
|
|
||||||
bool mHasEditedName;
|
bool mHasEditedName = false;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
WEditorProperties(QWidget* pParent = 0);
|
explicit WEditorProperties(QWidget* pParent = nullptr);
|
||||||
|
|
||||||
void SyncToEditor(CWorldEditor* pEditor);
|
void SyncToEditor(CWorldEditor* pEditor);
|
||||||
void SetLayerComboBox();
|
void SetLayerComboBox();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue