NIconButton: added native tooltip handling
This commit is contained in:
parent
275c2ae8ba
commit
9e0bb64d07
4 changed files with 18 additions and 17 deletions
|
|
@ -52,18 +52,6 @@ NLoader {
|
|||
NIconButton {
|
||||
id: myIconButton
|
||||
icon: "refresh"
|
||||
onEntered: function () {
|
||||
myTooltip.show()
|
||||
}
|
||||
onExited: function () {
|
||||
myTooltip.hide()
|
||||
}
|
||||
}
|
||||
NTooltip {
|
||||
id: myTooltip
|
||||
target: myIconButton
|
||||
positionAbove: false
|
||||
text: "Hello world"
|
||||
}
|
||||
|
||||
NDivider {
|
||||
|
|
@ -74,9 +62,8 @@ NLoader {
|
|||
// NToggle
|
||||
ColumnLayout {
|
||||
spacing: Style.marginLarge * scaling
|
||||
uniformCellSizes: true
|
||||
NText {
|
||||
text: "NToggle + NTooltip"
|
||||
text: "NToggle"
|
||||
color: Colors.accentSecondary
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue