mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-17 00:45:56 +08:00
Revert "Update model data handling in 3MFReader plugin"
This reverts commit 4da17d643d91cb10b0185770c550dfc0f147e38f.
This commit is contained in:
parent
15d600e76c
commit
9662aefa37
@ -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()
|
||||||
|
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user