Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLipu Fei <lipu.fei815@gmail.com>2019-11-05 12:48:18 +0300
committerLipu Fei <lipu.fei815@gmail.com>2019-11-05 12:48:18 +0300
commitb843210fd37e25abb8ceb875c4a98567a2045f65 (patch)
tree02cc56823900157287b69e65fa24c9b91056a0f9 /plugins/MachineSettingsAction
parenteeed98746d19ab875d7e5dba5d9f9058b5433cf3 (diff)
Add machine name to the machine settings dialog
Diffstat (limited to 'plugins/MachineSettingsAction')
-rw-r--r--plugins/MachineSettingsAction/MachineSettingsAction.qml16
1 files changed, 16 insertions, 0 deletions
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
{