mirror of
https://github.com/zoriya/noctalia-shell.git
synced 2026-08-15 18:43:59 +00:00
NTooltip: wip
This commit is contained in:
+20
-1
@@ -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 {}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user