Commit ff5a309e authored by LE BRETON Come's avatar LE BRETON Come

Simplifies.

parent a7d20d76
......@@ -210,17 +210,16 @@ dtkWidgetsMenuItemParameterFacade::~dtkWidgetsMenuItemParameterFacade(void)
// ///////////////////////////////////////////////////////////////////
// dtkWidgetsMenuItemCustomFacade
// ///////////////////////////////////////////////////////////////////
#include "dtkWidgetsMenuItem+custom.h"
dtkWidgetsMenuItemCustomFacade::dtkWidgetsMenuItemCustomFacade(dtkWidgetsMenuItemCustom *source, QWidget *parent) : dtkWidgetsMenuItemFacade(source, parent)
{
QVBoxLayout *layout = new QVBoxLayout(this);
this->s = source;
layout->addWidget(source->widget());
}
dtkWidgetsMenuItemCustomFacade::~dtkWidgetsMenuItemCustomFacade(void)
{
this->s->widget()->setParent(nullptr);
this->layout()->itemAt(0)->widget()->setParent(nullptr);
}
// ///////////////////////////////////////////////////////////////////
......
......@@ -191,9 +191,6 @@ class dtkWidgetsMenuItemCustomFacade : public dtkWidgetsMenuItemFacade
public:
dtkWidgetsMenuItemCustomFacade(dtkWidgetsMenuItemCustom *source, QWidget *parent = nullptr);
~dtkWidgetsMenuItemCustomFacade(void);
private:
dtkWidgetsMenuItemCustom *s = nullptr;
};
// ///////////////////////////////////////////////////////////////////
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment