Gui: use of TaskDialog::addTaskBox

This commit is contained in:
wmayer
2024-03-26 10:19:51 +01:00
committed by wwmayer
parent bc9d845296
commit 0ed7eb5652
12 changed files with 8 additions and 31 deletions

View File

@@ -634,12 +634,9 @@ SbVec3f InteractiveScale::getCoordsOnImagePlane(const SbVec3f& point)
// ----------------------------------------------------------------------------
TaskImageDialog::TaskImageDialog(Image::ImagePlane* obj)
: widget{new TaskImage(obj)}
{
widget = new TaskImage(obj);
auto taskbox = new Gui::TaskView::TaskBox(
Gui::BitmapFactory().pixmap("image-plane"), widget->windowTitle(), true, nullptr);
taskbox->groupLayout()->addWidget(widget);
Content.push_back(taskbox);
addTaskBox(Gui::BitmapFactory().pixmap("image-plane"), widget);
}
void TaskImageDialog::open()