mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-04-24 06:39:38 +08:00
40 lines
1.1 KiB
QML
40 lines
1.1 KiB
QML
// Copyright (c) 2024 Ultimaker B.V.
|
|
// Cura is released under the terms of the LGPLv3 or higher.
|
|
|
|
import QtQuick 2.10
|
|
import QtQuick.Controls 2.3
|
|
import QtQuick.Layouts 1.3
|
|
import QtQuick.Window 2.2
|
|
|
|
import UM 1.8 as UM
|
|
import Cura 1.1 as Cura
|
|
|
|
RowLayout
|
|
{
|
|
id: settingSelection
|
|
|
|
UM.CheckBox
|
|
{
|
|
text: modelData.name
|
|
Layout.preferredWidth: UM.Theme.getSize("setting").width
|
|
checked: modelData.selected
|
|
onClicked: modelData.selected = checked
|
|
tooltip: modelData.selectable ? "" :catalog.i18nc("@tooltip Don't translate 'Universal Cura Project'", "This setting may not perform well while exporting to Universal Cura Project. Users are asked to add it at their own risk.")
|
|
}
|
|
|
|
UM.Label
|
|
{
|
|
text: modelData.value
|
|
}
|
|
|
|
UM.HelpIcon
|
|
{
|
|
UM.I18nCatalog { id: catalog; name: "cura" }
|
|
text: catalog.i18nc("@tooltip Don't translate 'Universal Cura Project'",
|
|
"This setting may not perform well while exporting to Universal Cura Project, Users are asked to add it at their own risk.")
|
|
visible: !modelData.selectable
|
|
}
|
|
|
|
|
|
}
|