TechDraw: Replace dynamic_cast with qobject_cast

This commit is contained in:
Kacper Donat
2025-04-07 20:00:03 +02:00
committed by Benjamin Nauck
parent 6e2583cdcd
commit 216166d853
6 changed files with 9 additions and 9 deletions

View File

@@ -460,7 +460,7 @@ TaskDlgLineDecor::TaskDlgLineDecor(TechDraw::DrawViewPart* partFeat,
taskbox->hideGroupBox();
}
TaskLineDecor* parent = dynamic_cast<TaskLineDecor*>(widget);
TaskLineDecor* parent = qobject_cast<TaskLineDecor*>(widget);
if (parent) {
restore = new TaskRestoreLines(partFeat, parent);
restoreBox = new Gui::TaskView::TaskBox(Gui::BitmapFactory().pixmap("actions/TechDraw_DecorateLine"),