1234567891011121314151617181920212223 |
- // Copyright (c) 2022 Ultimaker B.V.
- // Uranium is released under the terms of the LGPLv3 or higher.
- import QtQuick 2.2
- import QtQuick.Controls 2.1
- import UM 1.5 as UM
- import Cura 1.5 as Cura
- Cura.CategoryButton
- {
- id: base
- categoryIcon: definition ? UM.Theme.getIcon(definition.icon) : ""
- labelText: definition ? definition.label : ""
- expanded: definition ? definition.expanded : false
- signal showTooltip(string text)
- signal hideTooltip()
- signal contextMenuRequested()
- onClicked: expanded ? settingDefinitionsModel.collapseRecursive(definition.key) : settingDefinitionsModel.expandRecursive(definition.key)
- }
|