mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-04-23 14:19:37 +08:00
25 lines
660 B
QML
25 lines
660 B
QML
// 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 Cura 1.5 as Cura
|
|
import UM 1.5 as UM
|
|
import ".."
|
|
|
|
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)
|
|
}
|