From b843210fd37e25abb8ceb875c4a98567a2045f65 Mon Sep 17 00:00:00 2001 From: Lipu Fei Date: Tue, 5 Nov 2019 10:48:18 +0100 Subject: Add machine name to the machine settings dialog --- plugins/MachineSettingsAction/MachineSettingsAction.qml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'plugins/MachineSettingsAction') diff --git a/plugins/MachineSettingsAction/MachineSettingsAction.qml b/plugins/MachineSettingsAction/MachineSettingsAction.qml index a1540c22ab..56b4d3e3b6 100644 --- a/plugins/MachineSettingsAction/MachineSettingsAction.qml +++ b/plugins/MachineSettingsAction/MachineSettingsAction.qml @@ -87,9 +87,25 @@ Cura.MachineAction } } } + + Label + { + id: machineNameLabel + anchors.top: parent.top + anchors.left: parent.left + anchors.leftMargin: UM.Theme.getSize("default_margin").width + text: Cura.MachineManager.activeMachine.name + horizontalAlignment: Text.AlignHCenter + font: UM.Theme.getFont("large_bold") + color: UM.Theme.getColor("text") + renderType: Text.NativeRendering + } + UM.TabRow { id: tabBar + anchors.top: machineNameLabel.bottom + anchors.topMargin: UM.Theme.getSize("default_margin").height width: parent.width Repeater { -- cgit v1.2.3