mirror of
https://github.com/AxioDL/PrimeWorldEditor.git
synced 2025-07-05 20:55:59 +00:00
CWorldInfoSidebar: Make use of in-class initializers where applicable
This commit is contained in:
parent
548e4ca708
commit
9b2bfd5bcd
@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
CWorldInfoSidebar::CWorldInfoSidebar(CWorldEditor *pEditor)
|
CWorldInfoSidebar::CWorldInfoSidebar(CWorldEditor *pEditor)
|
||||||
: CWorldEditorSidebar(pEditor)
|
: CWorldEditorSidebar(pEditor)
|
||||||
, mpUI(new Ui::CWorldInfoSidebar)
|
, mpUI(std::make_unique<Ui::CWorldInfoSidebar>())
|
||||||
, mModel(pEditor)
|
, mModel(pEditor)
|
||||||
{
|
{
|
||||||
mpUI->setupUi(this);
|
mpUI->setupUi(this);
|
||||||
@ -45,10 +45,7 @@ CWorldInfoSidebar::CWorldInfoSidebar(CWorldEditor *pEditor)
|
|||||||
mpUI->AreaNameSelector->SetEditable(false);
|
mpUI->AreaNameSelector->SetEditable(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
CWorldInfoSidebar::~CWorldInfoSidebar()
|
CWorldInfoSidebar::~CWorldInfoSidebar() = default;
|
||||||
{
|
|
||||||
delete mpUI;
|
|
||||||
}
|
|
||||||
|
|
||||||
// ************ SLOTS ************
|
// ************ SLOTS ************
|
||||||
void CWorldInfoSidebar::OnActiveProjectChanged(CGameProject *pProj)
|
void CWorldInfoSidebar::OnActiveProjectChanged(CGameProject *pProj)
|
||||||
|
@ -6,6 +6,8 @@
|
|||||||
#include "CWorldEditorSidebar.h"
|
#include "CWorldEditorSidebar.h"
|
||||||
#include "CWorldTreeModel.h"
|
#include "CWorldTreeModel.h"
|
||||||
|
|
||||||
|
#include <memory>
|
||||||
|
|
||||||
class CWorldEditor;
|
class CWorldEditor;
|
||||||
|
|
||||||
namespace Ui {
|
namespace Ui {
|
||||||
@ -16,13 +18,13 @@ class CWorldInfoSidebar : public CWorldEditorSidebar
|
|||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
Ui::CWorldInfoSidebar *mpUI;
|
std::unique_ptr<Ui::CWorldInfoSidebar> mpUI;
|
||||||
CWorldTreeModel mModel;
|
CWorldTreeModel mModel;
|
||||||
CWorldTreeProxyModel mProxyModel;
|
CWorldTreeProxyModel mProxyModel;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
explicit CWorldInfoSidebar(CWorldEditor *pEditor);
|
explicit CWorldInfoSidebar(CWorldEditor *pEditor);
|
||||||
~CWorldInfoSidebar();
|
~CWorldInfoSidebar() override;
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
void OnActiveProjectChanged(CGameProject *pProj);
|
void OnActiveProjectChanged(CGameProject *pProj);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user