PD: Replace helper functions in subclasses of TaskDlgFeatureParameters with a template function

This commit is contained in:
wmayer
2024-07-18 00:02:07 +02:00
parent 01d1e2b374
commit b1029bc682
21 changed files with 107 additions and 97 deletions

View File

@@ -340,20 +340,12 @@ TaskDlgChamferParameters::~TaskDlgChamferParameters() = default;
//==== calls from the TaskView ===============================================================
//void TaskDlgChamferParameters::open()
//{
// // a transaction is already open at creation time of the chamfer
// if (!Gui::Command::hasPendingCommand()) {
// QString msg = tr("Edit chamfer");
// Gui::Command::openCommand((const char*)msg.toUtf8());
// }
//}
bool TaskDlgChamferParameters::accept()
{
auto obj = vp->getObject();
if (!obj->isError())
auto obj = getObject();
if (!obj->isError()) {
parameter->showObject();
}
parameter->apply();