SettingSelection.qml 860 B

1234567891011121314151617181920212223242526272829303132333435363738
  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. enabled: modelData.selectable
  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 can't be exported because it depends on the used printer capacities")
  29. visible: !modelData.selectable
  30. }
  31. }