mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-06 06:28:52 +08:00
Use QStringList rather than QVariantList
We know that they are strings after all. Contributes to issue CURA-8585.
This commit is contained in:
parent
1418bb072c
commit
9c51d620b2
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user