Gui: refactor and modernize code of Placement dialog

This commit is contained in:
wmayer
2022-10-27 00:28:55 +02:00
parent 4d8e61549d
commit 4e643dcec3
6 changed files with 109 additions and 26 deletions

View File

@@ -227,6 +227,7 @@ void CmdRobotSetDefaultOrientation::activated(int)
{
// create placement dialog
Gui::Dialog::Placement Dlg;
Dlg.setSelection(Gui::Selection().getSelectionEx());
Base::Placement place;
Dlg.setPlacement(place);
if (Dlg.exec() == QDialog::Accepted ){