Browse Source

Use new-style signalemitter decorator instead of SingalEmitter subclass

CURA-1615
fieldOfView 8 years ago
parent
commit
8a206b74fd
1 changed files with 3 additions and 2 deletions
  1. 3 2
      plugins/USBPrinting/USBPrinterOutputDeviceManager.py

+ 3 - 2
plugins/USBPrinting/USBPrinterOutputDeviceManager.py

@@ -1,7 +1,7 @@
 # Copyright (c) 2015 Ultimaker B.V.
 # Cura is released under the terms of the AGPLv3 or higher.
 
-from UM.Signal import Signal, SignalEmitter
+from UM.Signal import Signal, signalemitter
 from . import USBPrinterOutputDevice
 from UM.Application import Application
 from UM.Resources import Resources
@@ -28,7 +28,8 @@ i18n_catalog = i18nCatalog("cura")
 
 
 ##  Manager class that ensures that a usbPrinteroutput device is created for every connected USB printer.
-class USBPrinterOutputDeviceManager(QObject, SignalEmitter, OutputDevicePlugin, Extension):
+@signalemitter
+class USBPrinterOutputDeviceManager(QObject, OutputDevicePlugin, Extension):
     def __init__(self, parent = None):
         super().__init__(parent = parent)
         self._serial_port_list = []