Material: 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 c704622605
commit f2cd99c50a
4 changed files with 16 additions and 16 deletions

View File

@@ -208,7 +208,7 @@ void DlgInspectMaterial::updateMaterialTree(const Materials::Material& material)
Base::Console().Log("Material '%s'\n", material.getName().toStdString().c_str());
auto tree = ui->treeMaterials;
auto model = dynamic_cast<QStandardItemModel*>(tree->model());
auto model = qobject_cast<QStandardItemModel*>(tree->model());
model->clear();
addMaterial(tree, model, material);