Material: fixes several issues

* fix warning -Wunused-variable
* fix warning -Wreorder-ctor
* fix warning -Wunused-but-set-variable
* fix uic warning for DlgDisplayProperties.ui
* rename the target MateriaTestLib ALL (note the typo and the already existing MaterialTestLib ALL) to MaterialTest ALL
  drop the hard dependency to the Part module: The document is checked for a property ShapeMaterial of type Materials::PropertyMaterial.
  An alternative could be to cast to GeoFeature and use the methods getMaterialAppearance() and setMaterialAppearance()
This commit is contained in:
wmayer
2024-04-05 00:06:28 +02:00
committed by wwmayer
parent 7a44179529
commit d5cfdb1f1e
7 changed files with 15 additions and 19 deletions

View File

@@ -195,7 +195,6 @@ bool MaterialTreeWidget::findInTree(const QStandardItem& node,
}
if (node.hasChildren()) {
int rows = node.rowCount();
for (int i = 0; i < node.rowCount(); i++) {
auto child = node.child(i);
if (findInTree(*child, index, uuid)) {
@@ -458,4 +457,4 @@ void MaterialTreeWidget::onDoubleClick(const QModelIndex& index)
auto uuid = item->data(Qt::UserRole).toString();
updateMaterial(uuid);
}
}
}