Apply suggestions from code review

Co-authored-by: Casper Lamboo <c.lamboo@ultimaker.com>
This commit is contained in:
Joey de l'Arago 2022-06-15 17:31:40 +02:00 committed by GitHub
parent b132b5c08c
commit 142f1823b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -46,7 +46,7 @@ class ActiveIntentQualitiesModel(ListModel):
def _updateDelayed(self):
self._update_timer.start()
def _onChanged(self, container):
def _onChanged(self, container: ContainerStack) -> None:
if container.getMetaDataEntry("type") == "intent":
self._updateDelayed()

View File

@ -25,7 +25,7 @@ class IntentSelectionModel(ListModel):
DescriptionRole = Qt.ItemDataRole.UserRole + 4
IconRole = Qt.ItemDataRole.UserRole + 5
def __init__(self, parent=None):
def __init__(self, parent=QAbstractListModel) -> None:
super().__init__(parent)
self.addRoleName(self.NameRole, "name")