mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 14:37:29 -06:00
Add dedicate functions for exportedSettingModelItems
and exportedSettingModelRowCount
This commit is contained in:
parent
a58cd69b39
commit
4dd0113a78
2 changed files with 9 additions and 9 deletions
|
@ -362,6 +362,13 @@ 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()
|
||||
@pyqtSlot()
|
||||
def closeBackend(self) -> None:
|
||||
"""Close the backend: otherwise one could end up with "Slicing..."""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue