SettingVisibilityCategory.qml 647 B

1234567891011121314151617181920212223
  1. // Copyright (c) 2022 Ultimaker B.V.
  2. // Uranium is released under the terms of the LGPLv3 or higher.
  3. import QtQuick 2.2
  4. import QtQuick.Controls 2.1
  5. import UM 1.5 as UM
  6. import Cura 1.5 as Cura
  7. Cura.CategoryButton
  8. {
  9. id: base
  10. categoryIcon: definition ? UM.Theme.getIcon(definition.icon) : ""
  11. labelText: definition ? definition.label : ""
  12. expanded: definition ? definition.expanded : false
  13. signal showTooltip(string text)
  14. signal hideTooltip()
  15. signal contextMenuRequested()
  16. onClicked: expanded ? settingDefinitionsModel.collapseRecursive(definition.key) : settingDefinitionsModel.expandRecursive(definition.key)
  17. }