mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-24 19:31:16 -07:00
Move CategoryButton to cura repo
CURA-9005
This commit is contained in:
parent
addc5e36a7
commit
5701f42d63
6 changed files with 255 additions and 25 deletions
23
resources/qml/Preferences/SettingVisibilityCategory.qml
Normal file
23
resources/qml/Preferences/SettingVisibilityCategory.qml
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
// 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)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue