Add dedicate functions for exportedSettingModelItems and exportedSettingModelRowCount

This commit is contained in:
c.lamboo 2024-03-18 12:14:58 +01:00
parent a58cd69b39
commit 4dd0113a78
2 changed files with 9 additions and 9 deletions

View file

@ -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..."""