NTooltip: wip
This commit is contained in:
parent
4a4564fe5f
commit
3790508674
3 changed files with 159 additions and 3 deletions
|
|
@ -31,18 +31,37 @@ PanelWindow {
|
|||
layer.enabled: true
|
||||
}
|
||||
|
||||
// Testing widgets
|
||||
RowLayout {
|
||||
// Just testing
|
||||
|
||||
NToggle {
|
||||
label: "Label"
|
||||
description: "Description"
|
||||
onToggled: function(value: bool) {
|
||||
console.log("NToggle: " + value)
|
||||
}
|
||||
}
|
||||
|
||||
NIconButton {
|
||||
id: myIconButton
|
||||
icon: "refresh"
|
||||
onEntered: function() {
|
||||
myTooltip.tooltipVisible = true;
|
||||
}
|
||||
onExited: function() {
|
||||
myTooltip.tooltipVisible = false;
|
||||
}
|
||||
}
|
||||
NTooltip {
|
||||
id: myTooltip
|
||||
targetItem: myIconButton
|
||||
positionAbove: false
|
||||
text: "Hello world"
|
||||
}
|
||||
|
||||
NSlider {}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue