Misc: Replace dynamic_cast with qobject_cast

This commit is contained in:
Kacper Donat
2025-04-07 20:00:08 +02:00
committed by Benjamin Nauck
parent f2cd99c50a
commit b14d3a224b
10 changed files with 20 additions and 20 deletions

View File

@@ -136,7 +136,7 @@ void Flag::mouseMoveEvent(QMouseEvent *e)
move(e->globalPosition().toPoint() - dragPosition);
#endif
e->accept();
auto viewer = dynamic_cast<View3DInventorViewer*>(parentWidget());
auto viewer = qobject_cast<View3DInventorViewer*>(parentWidget());
if (viewer)
viewer->getSoRenderManager()->scheduleRedraw();
}