Now displaying a help icon and value units

CURA-11561
This commit is contained in:
Erwan MATHIEU 2024-02-01 10:34:19 +01:00
parent fcf1e63160
commit 38b67f8015
4 changed files with 29 additions and 31 deletions

View file

@ -6,7 +6,7 @@ import QtQuick.Controls 2.3
import QtQuick.Layouts 1.3
import QtQuick.Window 2.2
import UM 1.5 as UM
import UM 1.8 as UM
import Cura 1.1 as Cura
RowLayout
@ -19,10 +19,20 @@ RowLayout
Layout.preferredWidth: UM.Theme.getSize("setting").width
checked: modelData.selected
onClicked: modelData.selected = checked
enabled: modelData.selectable
}
UM.Label
{
text: modelData.value
}
UM.HelpIcon
{
UM.I18nCatalog { id: catalog; name: "cura" }
text: catalog.i18nc("@tooltip",
"This setting can't be exported because it depends too much on the used printer capacities")
visible: !modelData.selectable
}
}