Revert "Update model data handling in 3MFReader plugin"

This reverts commit 4da17d643d.
This commit is contained in:
c.lamboo 2024-03-20 13:34:41 +01:00
parent 15d600e76c
commit 9662aefa37
2 changed files with 5 additions and 8 deletions

View file

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

View file

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