mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 19:35:58 +08:00
Use QStringList instead of QVariantList since the return value is a list of strings.
Co-Authored-By: diegopradogesto <d.pradogesto@ultimaker.com>
This commit is contained in:
parent
5b940b5242
commit
4990f20566
@ -212,7 +212,7 @@ class PrinterOutputDevice(QObject, OutputDevice):
|
||||
self.uniqueConfigurationsChanged.emit()
|
||||
|
||||
# Returns the unique configurations of the printers within this output device
|
||||
@pyqtProperty("QVariantList", notify = uniqueConfigurationsChanged)
|
||||
@pyqtProperty("QStringList", notify = uniqueConfigurationsChanged)
|
||||
def uniquePrinterTypes(self) -> List[str]:
|
||||
return list(set([configuration.printerType for configuration in self._unique_configurations]))
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user