Renaming USBPrinterConnection

CURA-1339
This commit is contained in:
Jaime van Kessel 2016-04-12 15:15:02 +02:00
parent 967c062357
commit 63eb1793ad
2 changed files with 3 additions and 3 deletions

View file

@ -2,7 +2,7 @@
# Cura is released under the terms of the AGPLv3 or higher.
from UM.Signal import Signal, SignalEmitter
from . import PrinterConnection
from . import USBPrinterOutputDevice
from UM.Application import Application
from UM.Resources import Resources
from UM.Logger import Logger
@ -190,7 +190,7 @@ class USBPrinterManager(QObject, SignalEmitter, OutputDevicePlugin, Extension):
## Because the model needs to be created in the same thread as the QMLEngine, we use a signal.
def addConnection(self, serial_port):
connection = PrinterConnection.PrinterConnection(serial_port)
connection = USBPrinterOutputDevice.USBPrinterOutputDevice(serial_port)
connection.connect()
connection.connectionStateChanged.connect(self._onPrinterConnectionStateChanged)
connection.progressChanged.connect(self.progressChanged)

View file

@ -24,7 +24,7 @@ from UM.i18n import i18nCatalog
catalog = i18nCatalog("cura")
class PrinterConnection(OutputDevice, QObject, SignalEmitter):
class USBPrinterOutputDevice(OutputDevice, QObject, SignalEmitter):
def __init__(self, serial_port, parent = None):
QObject.__init__(self, parent)
OutputDevice.__init__(self, serial_port)