Reorder HButton props
This commit is contained in:
parent
ed3a3726e1
commit
fd2f8c9828
@ -27,6 +27,19 @@ Button {
|
|||||||
// Prevent button from gaining focus and being highlighted on click
|
// Prevent button from gaining focus and being highlighted on click
|
||||||
focusPolicy: Qt.TabFocus
|
focusPolicy: Qt.TabFocus
|
||||||
|
|
||||||
|
background: HButtonBackground {
|
||||||
|
button: button
|
||||||
|
buttonTheme: theme.controls.button
|
||||||
|
radius: circle ? height : 0
|
||||||
|
color: backgroundColor
|
||||||
|
}
|
||||||
|
|
||||||
|
contentItem: HButtonContent {
|
||||||
|
id: contentItem
|
||||||
|
button: button
|
||||||
|
buttonTheme: theme.controls.button
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
readonly property alias iconItem: contentItem.icon
|
readonly property alias iconItem: contentItem.icon
|
||||||
readonly property alias label: contentItem.label
|
readonly property alias label: contentItem.label
|
||||||
@ -43,24 +56,8 @@ Button {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
Binding {
|
Binding on enabled {
|
||||||
when: disableWhileLoading && button.loading
|
when: disableWhileLoading && button.loading
|
||||||
target: button
|
|
||||||
property: "enabled"
|
|
||||||
value: false
|
value: false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
background: HButtonBackground {
|
|
||||||
button: button
|
|
||||||
buttonTheme: theme.controls.button
|
|
||||||
radius: circle ? height : 0
|
|
||||||
color: backgroundColor
|
|
||||||
}
|
|
||||||
|
|
||||||
contentItem: HButtonContent {
|
|
||||||
id: contentItem
|
|
||||||
button: button
|
|
||||||
buttonTheme: theme.controls.button
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user