Fix memory leaks.
This commit is contained in:
parent
ec8a22cc84
commit
cb4741acc9
|
@ -71,6 +71,12 @@ VPCarrousel::VPCarrousel(const VPLayoutPtr &layout, QWidget *parent) :
|
|||
Refresh();
|
||||
}
|
||||
|
||||
//---------------------------------------------------------------------------------------------------------------------
|
||||
VPCarrousel::~VPCarrousel()
|
||||
{
|
||||
delete ui;
|
||||
}
|
||||
|
||||
//---------------------------------------------------------------------------------------------------------------------
|
||||
void VPCarrousel::Refresh()
|
||||
{
|
||||
|
|
|
@ -59,7 +59,7 @@ class VPCarrousel : public QWidget
|
|||
|
||||
public:
|
||||
explicit VPCarrousel(const VPLayoutPtr &layout, QWidget *parent = nullptr);
|
||||
~VPCarrousel() override = default;
|
||||
~VPCarrousel() override;
|
||||
|
||||
/**
|
||||
* @brief SetOrientation Sets the orientation to the given value and refreshes
|
||||
|
|
|
@ -55,6 +55,11 @@ VPLayout::VPLayout(QUndoStack *undoStack) :
|
|||
}
|
||||
|
||||
//---------------------------------------------------------------------------------------------------------------------
|
||||
VPLayout::~VPLayout()
|
||||
{
|
||||
delete m_tileFactory;
|
||||
}
|
||||
|
||||
auto VPLayout::CreateLayout(QUndoStack *undoStack) -> VPLayoutPtr
|
||||
{
|
||||
SCASSERT(undoStack != nullptr)
|
||||
|
|
|
@ -45,7 +45,7 @@ class VPLayout : public QObject
|
|||
{
|
||||
Q_OBJECT // NOLINT
|
||||
public:
|
||||
~VPLayout() override = default;
|
||||
~VPLayout() override;
|
||||
|
||||
static auto CreateLayout(QUndoStack *undoStack) -> VPLayoutPtr;
|
||||
static void AddPiece(const VPLayoutPtr &layout, const VPPiecePtr &piece);
|
||||
|
|
|
@ -336,6 +336,12 @@ VPSheet::VPSheet(const VPLayoutPtr &layout, QObject *parent)
|
|||
SetSheetSize(QSizeF(settings->GetLayoutSheetPaperWidth(), settings->GetLayoutSheetPaperHeight()));
|
||||
}
|
||||
|
||||
//---------------------------------------------------------------------------------------------------------------------
|
||||
VPSheet::~VPSheet()
|
||||
{
|
||||
delete m_sceneData;
|
||||
}
|
||||
|
||||
//---------------------------------------------------------------------------------------------------------------------
|
||||
auto VPSheet::GetLayout() const -> VPLayoutPtr
|
||||
{
|
||||
|
|
|
@ -143,7 +143,7 @@ class VPSheet : public QObject
|
|||
public:
|
||||
explicit VPSheet(const VPLayoutPtr &layout, QObject *parent = nullptr);
|
||||
|
||||
~VPSheet() override = default;
|
||||
~VPSheet() override;
|
||||
|
||||
/**
|
||||
* @brief GetLayout Returns the Layout of the sheet
|
||||
|
|
|
@ -155,7 +155,7 @@ VCompleterLineEdit::VCompleterLineEdit(QWidget *parent)
|
|||
: VLineEdit(parent),
|
||||
m_model(new QStringListModel(this))
|
||||
{
|
||||
setCompleter(new MultiSelectCompleter());
|
||||
setCompleter(new MultiSelectCompleter(this));
|
||||
completer()->setModel(m_model);
|
||||
completer()->setCompletionMode(QCompleter::PopupCompletion);
|
||||
completer()->setCaseSensitivity(Qt::CaseInsensitive);
|
||||
|
|
Loading…
Reference in New Issue
Block a user