mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 14:37:29 -06:00
Add dedicate functions for exportedSettingModelItems
and exportedSettingModelRowCount
This commit is contained in:
parent
a58cd69b39
commit
4dd0113a78
2 changed files with 9 additions and 9 deletions
|
@ -173,7 +173,7 @@ UM.Dialog
|
|||
{
|
||||
id: numberOfOverrides
|
||||
leftLabelText: catalog.i18nc("@action:label", "Settings Loaded from UCP file")
|
||||
rightLabelText: catalog.i18ncp("@action:label", "%1 override", "%1 overrides", manager.exportedSettingModel.rowCount()).arg(manager.exportedSettingModel.rowCount())
|
||||
rightLabelText: catalog.i18ncp("@action:label", "%1 override", "%1 overrides", manager.exportedSettingModelRowCount).arg(manager.exportedSettingModelRowCount)
|
||||
buttonText: tableViewSpecificSettings.shouldBeVisible ? catalog.i18nc("@action:button", "Hide settings") : catalog.i18nc("@action:button", "Show settings")
|
||||
onButtonClicked: tableViewSpecificSettings.shouldBeVisible = !tableViewSpecificSettings.shouldBeVisible
|
||||
}
|
||||
|
@ -196,16 +196,9 @@ UM.Dialog
|
|||
{
|
||||
id: tableModel
|
||||
headers: ["category", "label", "value"]
|
||||
rows: manager.exportedSettingModel.items
|
||||
rows: manager.exportedSettingModelItems
|
||||
}
|
||||
}
|
||||
|
||||
property var modelRows: manager.exportedSettingModel.items
|
||||
onModelRowsChanged:
|
||||
{
|
||||
tableModel.clear()
|
||||
tableModel.rows = modelRows
|
||||
}
|
||||
}
|
||||
|
||||
comboboxVisible: manager.qualityChangesConflict
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue