CCollisionRenderSettingsDialog: Make use of in-class initializers where applicable
This commit is contained in:
parent
4c6080184f
commit
68a8f236fa
|
@ -5,8 +5,8 @@
|
||||||
|
|
||||||
CCollisionRenderSettingsDialog::CCollisionRenderSettingsDialog(CWorldEditor *pEditor, QWidget *pParent /*= 0*/)
|
CCollisionRenderSettingsDialog::CCollisionRenderSettingsDialog(CWorldEditor *pEditor, QWidget *pParent /*= 0*/)
|
||||||
: QDialog(pParent)
|
: QDialog(pParent)
|
||||||
|
, mpUi(std::make_unique<Ui::CCollisionRenderSettingsDialog>())
|
||||||
, mpEditor(pEditor)
|
, mpEditor(pEditor)
|
||||||
, mpUi(new Ui::CCollisionRenderSettingsDialog)
|
|
||||||
{
|
{
|
||||||
mpUi->setupUi(this);
|
mpUi->setupUi(this);
|
||||||
|
|
||||||
|
@ -27,10 +27,7 @@ CCollisionRenderSettingsDialog::CCollisionRenderSettingsDialog(CWorldEditor *pEd
|
||||||
connect(mpUi->HideAiBlockCheckBox, SIGNAL(toggled(bool)), this, SLOT(OnHideCheckboxesToggled()));
|
connect(mpUi->HideAiBlockCheckBox, SIGNAL(toggled(bool)), this, SLOT(OnHideCheckboxesToggled()));
|
||||||
}
|
}
|
||||||
|
|
||||||
CCollisionRenderSettingsDialog::~CCollisionRenderSettingsDialog()
|
CCollisionRenderSettingsDialog::~CCollisionRenderSettingsDialog() = default;
|
||||||
{
|
|
||||||
delete mpUi;
|
|
||||||
}
|
|
||||||
|
|
||||||
void CCollisionRenderSettingsDialog::SetupWidgets()
|
void CCollisionRenderSettingsDialog::SetupWidgets()
|
||||||
{
|
{
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
#define CCOLLISIONRENDERSETTINGSDIALOG_H
|
#define CCOLLISIONRENDERSETTINGSDIALOG_H
|
||||||
|
|
||||||
#include <QDialog>
|
#include <QDialog>
|
||||||
|
#include <memory>
|
||||||
|
|
||||||
class CWorldEditor;
|
class CWorldEditor;
|
||||||
|
|
||||||
|
@ -12,12 +13,12 @@ class CCollisionRenderSettingsDialog;
|
||||||
class CCollisionRenderSettingsDialog : public QDialog
|
class CCollisionRenderSettingsDialog : public QDialog
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
Ui::CCollisionRenderSettingsDialog *mpUi;
|
std::unique_ptr<Ui::CCollisionRenderSettingsDialog> mpUi;
|
||||||
|
|
||||||
CWorldEditor *mpEditor;
|
CWorldEditor *mpEditor;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
explicit CCollisionRenderSettingsDialog(CWorldEditor *pEditor, QWidget *pParent = 0);
|
explicit CCollisionRenderSettingsDialog(CWorldEditor *pEditor, QWidget *pParent = nullptr);
|
||||||
~CCollisionRenderSettingsDialog();
|
~CCollisionRenderSettingsDialog();
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
|
|
Loading…
Reference in New Issue