Update model data handling in 3MFReader plugin

partially revert 4dd0113a78
CURA-11720
This commit is contained in:
Saumya Jain 2024-03-18 12:46:10 +01:00
parent 522310b48a
commit 4da17d643d
2 changed files with 8 additions and 5 deletions

View file

@ -362,10 +362,6 @@ class WorkspaceDialog(QObject):
def exportedSettingModel(self):
return self._exported_settings_model
@pyqtProperty("QVariantList", notify=exportedSettingModelChanged)
def exportedSettingModelItems(self):
return self._exported_settings_model.items
@pyqtProperty(int, notify=exportedSettingModelChanged)
def exportedSettingModelRowCount(self):
return self._exported_settings_model.rowCount()

View file

@ -209,9 +209,16 @@ UM.Dialog
{
id: tableModel
headers: ["category", "label", "value"]
rows: manager.exportedSettingModelItems
rows: manager.exportedSettingModel.items
}
}
property var modelRows: manager.exportedSettingModel.items
onModelRowsChanged:
{
tableModel.clear()
tableModel.rows = modelRows
}
}
comboboxVisible: manager.qualityChangesConflict