PerObjectCategory.qml 660 B

123456789101112131415161718192021222324
  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 Cura 1.5 as Cura
  6. import UM 1.5 as UM
  7. import ".."
  8. Cura.CategoryButton
  9. {
  10. id: base;
  11. categoryIcon: definition ? UM.Theme.getIcon(definition.icon) : ""
  12. labelText: definition ? definition.label : ""
  13. expanded: definition ? definition.expanded : false
  14. signal showTooltip(string text)
  15. signal hideTooltip()
  16. signal contextMenuRequested()
  17. onClicked: expanded ? settingDefinitionsModel.collapseRecursive(definition.key) : settingDefinitionsModel.expandRecursive(definition.key)
  18. }