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:
Jaime van Kessel 2018-11-26 10:55:32 +01:00 committed by GitHub
parent 5b940b5242
commit 4990f20566
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -212,7 +212,7 @@ class PrinterOutputDevice(QObject, OutputDevice):
self.uniqueConfigurationsChanged.emit() self.uniqueConfigurationsChanged.emit()
# Returns the unique configurations of the printers within this output device # Returns the unique configurations of the printers within this output device
@pyqtProperty("QVariantList", notify = uniqueConfigurationsChanged) @pyqtProperty("QStringList", notify = uniqueConfigurationsChanged)
def uniquePrinterTypes(self) -> List[str]: def uniquePrinterTypes(self) -> List[str]:
return list(set([configuration.printerType for configuration in self._unique_configurations])) return list(set([configuration.printerType for configuration in self._unique_configurations]))
@ -243,4 +243,4 @@ class PrinterOutputDevice(QObject, OutputDevice):
if not self._firmware_updater: if not self._firmware_updater:
return return
self._firmware_updater.updateFirmware(firmware_file) self._firmware_updater.updateFirmware(firmware_file)