mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 14:37:29 -06:00
Update model data handling in 3MFReader plugin
partially revert 4dd0113a78
CURA-11720
This commit is contained in:
parent
522310b48a
commit
4da17d643d
2 changed files with 8 additions and 5 deletions
|
@ -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()
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue