Core: Placement dialog

+ replace separate buttons with QDialogButtonBox
+ add convenience method setPlacementAndBindObject
+ use const DocumentObject
This commit is contained in:
wmayer
2024-09-09 12:28:22 +02:00
parent e3fc2f9582
commit 9213635c9d
6 changed files with 163 additions and 107 deletions

View File

@@ -53,7 +53,7 @@ SelectionObject::SelectionObject(const Gui::SelectionChanges& msg)
}
}
SelectionObject::SelectionObject(App::DocumentObject* obj)
SelectionObject::SelectionObject(const App::DocumentObject* obj)
{
FeatName = obj->getNameInDocument();
DocName = obj->getDocument()->getName();