Browse Source

Use QStringList instead of QVariantList since the return value is a list of strings.

Co-Authored-By: diegopradogesto <d.pradogesto@ultimaker.com>
Jaime van Kessel 6 years ago
parent
commit
4990f20566
1 changed files with 2 additions and 2 deletions
  1. 2 2
      cura/PrinterOutputDevice.py

+ 2 - 2
cura/PrinterOutputDevice.py

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