mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-02 20:52:20 -07:00
Use Label for each individual step in add UltiMaker printer
CURA-8689
This commit is contained in:
parent
7639b0ba19
commit
f73d192d65
1 changed files with 23 additions and 12 deletions
|
|
@ -53,25 +53,36 @@ Control
|
||||||
|
|
||||||
UM.Label
|
UM.Label
|
||||||
{
|
{
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: false
|
||||||
Layout.alignment: Qt.AlignTop
|
Layout.alignment: Qt.AlignTop
|
||||||
wrapMode: Text.WordWrap
|
wrapMode: Text.WordWrap
|
||||||
font: UM.Theme.getFont("default_bold")
|
font: UM.Theme.getFont("default_bold")
|
||||||
text: catalog.i18nc("@label", "If you are trying to add a new Ultimaker printer to Cura")
|
text: catalog.i18nc("@label", "If you are trying to add a new Ultimaker printer to Cura")
|
||||||
}
|
}
|
||||||
|
|
||||||
UM.Label
|
ColumnLayout
|
||||||
{
|
{
|
||||||
Layout.fillWidth: true
|
spacing: 0
|
||||||
Layout.alignment: Qt.AlignTop
|
|
||||||
wrapMode: Text.WordWrap
|
FontMetrics
|
||||||
text: {
|
{
|
||||||
const steps = [
|
id: fontMetrics
|
||||||
catalog.i18nc("@info", "1. Sign in into Ultimaker Digilal Factory"),
|
font: UM.Theme.getFont("default")
|
||||||
catalog.i18nc("@info", "2. Follow the procedure to add a new printer"),
|
}
|
||||||
catalog.i18nc("@info", "3. Your new printer will automatically appear in Cura"),
|
|
||||||
];
|
Repeater {
|
||||||
return steps.join("<br />");
|
model: [
|
||||||
|
catalog.i18nc("@info", "Sign in into Ultimaker Digilal Factory"),
|
||||||
|
catalog.i18nc("@info", "Follow the procedure to add a new printer"),
|
||||||
|
catalog.i18nc("@info", "Your new printer will automatically appear in Cura"),
|
||||||
|
]
|
||||||
|
UM.Label
|
||||||
|
{
|
||||||
|
Layout.alignment: Qt.AlignTop
|
||||||
|
font: fontMetrics.font
|
||||||
|
Layout.preferredHeight: fontMetrics.height
|
||||||
|
text: `${index + 1}. ${modelData}`
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue