From 39921795cee3e79d74267cd2092ecea4c0fee97a Mon Sep 17 00:00:00 2001 From: ChrisTerBeke Date: Fri, 5 Jan 2018 14:46:16 +0100 Subject: [PATCH] Properly align printer not connected label from top --- resources/qml/PrinterOutput/OutputDeviceHeader.qml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/resources/qml/PrinterOutput/OutputDeviceHeader.qml b/resources/qml/PrinterOutput/OutputDeviceHeader.qml index d6ac863b87..bc9a44e245 100644 --- a/resources/qml/PrinterOutput/OutputDeviceHeader.qml +++ b/resources/qml/PrinterOutput/OutputDeviceHeader.qml @@ -19,6 +19,7 @@ Item anchors.fill: parent color: UM.Theme.getColor("setting_category") property var activePrinter: outputDevice != null ? outputDevice.activePrinter : null + Label { id: outputDeviceNameLabel @@ -29,6 +30,7 @@ Item anchors.margins: UM.Theme.getSize("default_margin").width text: outputDevice != null ? activePrinter.name : "" } + Label { id: outputDeviceAddressLabel @@ -39,6 +41,7 @@ Item anchors.right: parent.right anchors.margins: UM.Theme.getSize("default_margin").width } + Label { text: outputDevice != null ? outputDevice.connectionText : catalog.i18nc("@info:status", "The printer is not connected.") @@ -49,6 +52,8 @@ Item anchors.leftMargin: UM.Theme.getSize("default_margin").width anchors.right: parent.right anchors.rightMargin: UM.Theme.getSize("default_margin").width + anchors.top: parent.top + anchors.topMargin: UM.Theme.getSize("default_margin").height } } } \ No newline at end of file