mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 06:57:28 -06:00
Add header to profile settings table
This commit is contained in:
parent
f764ac8362
commit
e702fef44b
1 changed files with 18 additions and 2 deletions
|
@ -155,7 +155,7 @@ UM.ManagementPage
|
||||||
model: Cura.ContainerSettingsModel{ containers: (currentItem.id == Cura.MachineManager.activeQualityId) ? [base.currentItem.id, Cura.MachineManager.activeUserProfileId] : [base.currentItem.id] }
|
model: Cura.ContainerSettingsModel{ containers: (currentItem.id == Cura.MachineManager.activeQualityId) ? [base.currentItem.id, Cura.MachineManager.activeUserProfileId] : [base.currentItem.id] }
|
||||||
delegate: Row {
|
delegate: Row {
|
||||||
property variant setting: model
|
property variant setting: model
|
||||||
spacing: UM.Theme.getSize("default_margin").width
|
spacing: UM.Theme.getSize("default_margin").width/2
|
||||||
Label {
|
Label {
|
||||||
text: model.label
|
text: model.label
|
||||||
elide: Text.ElideMiddle
|
elide: Text.ElideMiddle
|
||||||
|
@ -165,7 +165,8 @@ UM.ManagementPage
|
||||||
model: setting.values.length
|
model: setting.values.length
|
||||||
Label {
|
Label {
|
||||||
text: setting.values[index].toString()
|
text: setting.values[index].toString()
|
||||||
width: scrollView.width / 100 * 10
|
width: scrollView.width / 100 * 15
|
||||||
|
elide: Text.ElideRight
|
||||||
font.strikeout: index < setting.values.length - 1 && setting.values[index + 1] != ""
|
font.strikeout: index < setting.values.length - 1 && setting.values[index + 1] != ""
|
||||||
opacity: font.strikeout ? 0.5 : 1
|
opacity: font.strikeout ? 0.5 : 1
|
||||||
}
|
}
|
||||||
|
@ -174,6 +175,21 @@ UM.ManagementPage
|
||||||
text: model.unit
|
text: model.unit
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
header: Row {
|
||||||
|
visible: currentItem.id == Cura.MachineManager.activeQualityId
|
||||||
|
spacing: UM.Theme.getSize("default_margin").width
|
||||||
|
Label {
|
||||||
|
text: catalog.i18nc("@action:label", "Profile value")
|
||||||
|
width: scrollView.width / 100 * 55
|
||||||
|
horizontalAlignment: Text.AlignRight
|
||||||
|
font.bold: true
|
||||||
|
}
|
||||||
|
Label {
|
||||||
|
text: catalog.i18nc("@action:label", "Current setting")
|
||||||
|
visible: currentItem.id == Cura.MachineManager.activeQualityId
|
||||||
|
font.bold: true
|
||||||
|
}
|
||||||
|
}
|
||||||
section.property: "category"
|
section.property: "category"
|
||||||
section.criteria: ViewSection.FullString
|
section.criteria: ViewSection.FullString
|
||||||
section.delegate: Label {
|
section.delegate: Label {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue