SettingSelection.qml 1021 B

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", "This setting may not perform well while exporting to UCP. Users are asked to add it at their own risk.")
  19. }
  20. UM.Label
  21. {
  22. text: modelData.value
  23. }
  24. UM.HelpIcon
  25. {
  26. UM.I18nCatalog { id: catalog; name: "cura" }
  27. text: catalog.i18nc("@tooltip",
  28. "This setting may not perform well while exporting to UCP, Users are asked to add it at their own risk.")
  29. visible: !modelData.selectable
  30. }
  31. }