[FEM] use std::unique_ptr for all dialog objects

- also fix too long line
- also further clang automatic code style changes
This commit is contained in:
Uwe
2023-03-22 19:13:24 +01:00
parent 48a921d2b7
commit 97103b3bf3
42 changed files with 1463 additions and 831 deletions

View File

@@ -32,15 +32,12 @@ using namespace FemGui;
using namespace Gui;
TaskDriver::TaskDriver(Fem::FemAnalysis* pcObject, QWidget* parent)
: TaskBox(Gui::BitmapFactory().pixmap("FEM_CreateNodesSet"),
tr("Nodes set"),
true,
parent),
pcObject(pcObject)
: TaskBox(Gui::BitmapFactory().pixmap("FEM_CreateNodesSet"), tr("Nodes set"), true, parent),
pcObject(pcObject),
ui(new Ui_TaskDriver)
{
// we need a separate container widget to add all controls to
proxy = new QWidget(this);
ui = new Ui_TaskDriver();
ui->setupUi(proxy);
QMetaObject::connectSlotsByName(this);
@@ -48,8 +45,6 @@ TaskDriver::TaskDriver(Fem::FemAnalysis* pcObject, QWidget* parent)
}
TaskDriver::~TaskDriver()
{
delete ui;
}
{}
#include "moc_TaskDriver.cpp"