Browse Source

Fixed codestyle issue

Switching between codestyles is hard :(
Jaime van Kessel 6 years ago
parent
commit
2e5b11af9d

+ 1 - 1
cura/PrinterOutput/PrintJobOutputModel.py

@@ -53,7 +53,7 @@ class PrintJobOutputModel(QObject):
             self.compatibleMachineFamiliesChanged.emit()
 
     @pyqtProperty(QUrl, notify=previewImageChanged)
-    def preview_image_url(self):
+    def previewImageUrl(self):
         self._preview_image_id += 1
         # There is an image provider that is called "camera". In order to ensure that the image qml object, that
         # requires a QUrl to function, updates correctly we add an increasing number. This causes to see the QUrl

+ 1 - 1
plugins/UM3NetworkPrinting/ClusterControlItem.qml

@@ -480,7 +480,7 @@ Component
                                 Image
                                 {
                                     id: printJobPreview
-                                    source: modelData.activePrintJob != null ? modelData.activePrintJob.preview_image_url : ""
+                                    source: modelData.activePrintJob != null ? modelData.activePrintJob.previewImageUrl : ""
                                     anchors.top: ownerName.bottom
                                     anchors.horizontalCenter: parent.horizontalCenter
                                     width: parent.width / 2

+ 1 - 1
plugins/UM3NetworkPrinting/PrintJobInfoBlock.qml

@@ -80,7 +80,7 @@ Item
 
             Image
             {
-                source: printJob.preview_image_url
+                source: printJob.previewImageUrl
                 anchors.top: ownerName.bottom
                 anchors.horizontalCenter: parent.horizontalCenter
                 anchors.bottom: totalTimeLabel.bottom