Use QStringList rather than QVariantList

We know that they are strings after all.

Contributes to issue CURA-8585.
This commit is contained in:
Ghostkeeper 2021-11-30 18:07:13 +01:00
parent 1418bb072c
commit 9c51d620b2
No known key found for this signature in database
GPG key ID: D2A8871EE34EC59A

View file

@ -235,11 +235,11 @@ class PackageModel(QObject):
def whereToBuy(self) -> str:
return self._where_to_buy
@pyqtProperty("QVariantList", constant = True)
@pyqtProperty("QStringList", constant = True)
def compatiblePrinters(self) -> List[str]:
return self._compatible_printers
@pyqtProperty("QVariantList", constant = True)
@pyqtProperty("QStringList", constant = True)
def compatibleSupportMaterials(self) -> List[str]:
return self._compatible_support_materials