RE: use of TaskDialog::addTaskBox

This commit is contained in:
wmayer
2024-03-26 13:13:56 +01:00
committed by wwmayer
parent 0c6a0ccad8
commit a70dadf770
8 changed files with 4 additions and 22 deletions

View File

@@ -256,12 +256,7 @@ void FitBSplineSurfaceWidget::changeEvent(QEvent* e)
TaskFitBSplineSurface::TaskFitBSplineSurface(const App::DocumentObjectT& obj)
{
widget = new FitBSplineSurfaceWidget(obj);
taskbox = new Gui::TaskView::TaskBox(Gui::BitmapFactory().pixmap("actions/FitSurface"),
widget->windowTitle(),
true,
nullptr);
taskbox->groupLayout()->addWidget(widget);
Content.push_back(taskbox);
addTaskBox(Gui::BitmapFactory().pixmap("actions/FitSurface"), widget);
}
void TaskFitBSplineSurface::open()

View File

@@ -71,7 +71,6 @@ public:
private:
FitBSplineSurfaceWidget* widget;
Gui::TaskView::TaskBox* taskbox;
};
} // namespace ReenGui

View File

@@ -108,12 +108,7 @@ void PoissonWidget::changeEvent(QEvent* e)
TaskPoisson::TaskPoisson(const App::DocumentObjectT& obj)
{
widget = new PoissonWidget(obj);
taskbox = new Gui::TaskView::TaskBox(Gui::BitmapFactory().pixmap("actions/FitSurface"),
widget->windowTitle(),
true,
nullptr);
taskbox->groupLayout()->addWidget(widget);
Content.push_back(taskbox);
addTaskBox(Gui::BitmapFactory().pixmap("actions/FitSurface"), widget);
}
TaskPoisson::~TaskPoisson() = default;

View File

@@ -67,7 +67,6 @@ public:
private:
PoissonWidget* widget;
Gui::TaskView::TaskBox* taskbox;
};
} // namespace ReenGui

View File

@@ -272,9 +272,7 @@ void Segmentation::changeEvent(QEvent* e)
TaskSegmentation::TaskSegmentation(Mesh::Feature* mesh)
{
widget = new Segmentation(mesh);
taskbox = new Gui::TaskView::TaskBox(QPixmap(), widget->windowTitle(), false, nullptr);
taskbox->groupLayout()->addWidget(widget);
Content.push_back(taskbox);
addTaskBox(widget, false);
}
bool TaskSegmentation::accept()

View File

@@ -78,7 +78,6 @@ public:
private:
Segmentation* widget;
Gui::TaskView::TaskBox* taskbox;
};
} // namespace ReverseEngineeringGui

View File

@@ -343,9 +343,7 @@ void SegmentationManual::reject()
TaskSegmentationManual::TaskSegmentationManual()
{
widget = new SegmentationManual();
taskbox = new Gui::TaskView::TaskBox(QPixmap(), widget->windowTitle(), false, nullptr);
taskbox->groupLayout()->addWidget(widget);
Content.push_back(taskbox);
addTaskBox(widget, false);
}
void TaskSegmentationManual::modifyStandardButtons(QDialogButtonBox* box)

View File

@@ -102,7 +102,6 @@ public:
private:
SegmentationManual* widget;
Gui::TaskView::TaskBox* taskbox;
};
} // namespace ReverseEngineeringGui