SettingSelection.qml 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. // Copyright (c) 2024 Ultimaker B.V.
  2. // Cura is released under the terms of the LGPLv3 or higher.
  3. import QtQuick 2.10
  4. import QtQuick.Controls 2.3
  5. import QtQuick.Layouts 1.3
  6. import QtQuick.Window 2.2
  7. import UM 1.8 as UM
  8. import Cura 1.1 as Cura
  9. RowLayout
  10. {
  11. id: settingSelection
  12. UM.CheckBox
  13. {
  14. text: modelData.name
  15. Layout.preferredWidth: UM.Theme.getSize("setting").width
  16. checked: modelData.selected
  17. onClicked: modelData.selected = checked
  18. 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.")
  19. }
  20. UM.Label
  21. {
  22. text: modelData.valuename
  23. }
  24. UM.HelpIcon
  25. {
  26. UM.I18nCatalog { id: catalog; name: "cura" }
  27. text: catalog.i18nc("@tooltip Don't translate 'Universal Cura Project'",
  28. "This setting may not perform well while exporting to Universal Cura Project, Users are asked to add it at their own risk.")
  29. visible: !modelData.selectable
  30. }
  31. }