mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 06:57:28 -06:00
Fixed codestyle issue
Switching between codestyles is hard :(
This commit is contained in:
parent
fb1033ad99
commit
2e5b11af9d
3 changed files with 3 additions and 3 deletions
|
@ -53,7 +53,7 @@ class PrintJobOutputModel(QObject):
|
||||||
self.compatibleMachineFamiliesChanged.emit()
|
self.compatibleMachineFamiliesChanged.emit()
|
||||||
|
|
||||||
@pyqtProperty(QUrl, notify=previewImageChanged)
|
@pyqtProperty(QUrl, notify=previewImageChanged)
|
||||||
def preview_image_url(self):
|
def previewImageUrl(self):
|
||||||
self._preview_image_id += 1
|
self._preview_image_id += 1
|
||||||
# There is an image provider that is called "camera". In order to ensure that the image qml object, that
|
# 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
|
# requires a QUrl to function, updates correctly we add an increasing number. This causes to see the QUrl
|
||||||
|
|
|
@ -480,7 +480,7 @@ Component
|
||||||
Image
|
Image
|
||||||
{
|
{
|
||||||
id: printJobPreview
|
id: printJobPreview
|
||||||
source: modelData.activePrintJob != null ? modelData.activePrintJob.preview_image_url : ""
|
source: modelData.activePrintJob != null ? modelData.activePrintJob.previewImageUrl : ""
|
||||||
anchors.top: ownerName.bottom
|
anchors.top: ownerName.bottom
|
||||||
anchors.horizontalCenter: parent.horizontalCenter
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
width: parent.width / 2
|
width: parent.width / 2
|
||||||
|
|
|
@ -80,7 +80,7 @@ Item
|
||||||
|
|
||||||
Image
|
Image
|
||||||
{
|
{
|
||||||
source: printJob.preview_image_url
|
source: printJob.previewImageUrl
|
||||||
anchors.top: ownerName.bottom
|
anchors.top: ownerName.bottom
|
||||||
anchors.horizontalCenter: parent.horizontalCenter
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
anchors.bottom: totalTimeLabel.bottom
|
anchors.bottom: totalTimeLabel.bottom
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue