NTooltip: subtle gradient, NToggle: onEnter, onExited
This commit is contained in:
parent
ce22559ee2
commit
5c9c61cf81
4 changed files with 20 additions and 14 deletions
|
|
@ -14,6 +14,8 @@ RowLayout {
|
|||
property int baseSize: Style.baseWidgetSize
|
||||
|
||||
signal toggled(bool balue)
|
||||
signal entered
|
||||
signal exited
|
||||
|
||||
Layout.fillWidth: true
|
||||
|
||||
|
|
@ -69,8 +71,14 @@ RowLayout {
|
|||
anchors.fill: parent
|
||||
cursorShape: Qt.PointingHandCursor
|
||||
hoverEnabled: true
|
||||
onEntered: hovering = true
|
||||
onExited: hovering = false
|
||||
onEntered: {
|
||||
hovering = true
|
||||
root.entered()
|
||||
}
|
||||
onExited: {
|
||||
hovering = false
|
||||
root.exited()
|
||||
}
|
||||
onClicked: {
|
||||
value = !value
|
||||
root.toggled(value)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue