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

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