mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-14 18:27:51 -06:00
Add skeleton loading to print job queue
Contributes to CL-1157
This commit is contained in:
parent
e81742d296
commit
8f37b65ffe
3 changed files with 64 additions and 26 deletions
|
@ -15,6 +15,7 @@ Item
|
|||
id: base
|
||||
|
||||
property bool expanded: false
|
||||
property bool enabled: true
|
||||
property var borderWidth: 1
|
||||
property color borderColor: "#CCCCCC"
|
||||
property color headerBackgroundColor: "white"
|
||||
|
@ -34,7 +35,7 @@ Item
|
|||
color: borderColor
|
||||
width: borderWidth
|
||||
}
|
||||
color: headerMouseArea.containsMouse ? headerHoverColor : headerBackgroundColor
|
||||
color: base.enabled && headerMouseArea.containsMouse ? headerHoverColor : headerBackgroundColor
|
||||
height: childrenRect.height
|
||||
width: parent.width
|
||||
Behavior on color
|
||||
|
@ -50,8 +51,12 @@ Item
|
|||
{
|
||||
id: headerMouseArea
|
||||
anchors.fill: header
|
||||
onClicked: base.expanded = !base.expanded
|
||||
hoverEnabled: true
|
||||
onClicked:
|
||||
{
|
||||
if (!base.enabled) return
|
||||
base.expanded = !base.expanded
|
||||
}
|
||||
hoverEnabled: base.enabled
|
||||
}
|
||||
|
||||
Rectangle
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue