RE: use of TaskDialog::addTaskBox
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -71,7 +71,6 @@ public:
|
||||
|
||||
private:
|
||||
FitBSplineSurfaceWidget* widget;
|
||||
Gui::TaskView::TaskBox* taskbox;
|
||||
};
|
||||
|
||||
} // namespace ReenGui
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -67,7 +67,6 @@ public:
|
||||
|
||||
private:
|
||||
PoissonWidget* widget;
|
||||
Gui::TaskView::TaskBox* taskbox;
|
||||
};
|
||||
|
||||
} // namespace ReenGui
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -78,7 +78,6 @@ public:
|
||||
|
||||
private:
|
||||
Segmentation* widget;
|
||||
Gui::TaskView::TaskBox* taskbox;
|
||||
};
|
||||
|
||||
} // namespace ReverseEngineeringGui
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -102,7 +102,6 @@ public:
|
||||
|
||||
private:
|
||||
SegmentationManual* widget;
|
||||
Gui::TaskView::TaskBox* taskbox;
|
||||
};
|
||||
|
||||
} // namespace ReverseEngineeringGui
|
||||
|
||||
Reference in New Issue
Block a user