Replaced all NWidgets callback by proper signals

This commit is contained in:
quadbyte
2025-08-12 13:22:15 -04:00
parent 1a7a0dbb16
commit a7d4e0ec1d
27 changed files with 93 additions and 88 deletions
+2 -2
View File
@@ -109,7 +109,7 @@ Variants {
sizeMultiplier: 0.8
showBorder: false
anchors.verticalCenter: parent.verticalCenter
onClicked: function () {
onClicked: {
demoPanel.isLoaded = !demoPanel.isLoaded
}
}
@@ -121,7 +121,7 @@ Variants {
sizeMultiplier: 0.8
showBorder: false
anchors.verticalCenter: parent.verticalCenter
onClicked: function () {
onClicked: {
// Map this button's center to the screen and open the side panel below it
const localCenterX = width / 2
const localCenterY = height / 2
+3 -3
View File
@@ -12,15 +12,15 @@ NClock {
target: root
}
onEntered: function () {
onEntered: {
if (!calendar.isLoaded) {
tooltip.show()
}
}
onExited: function () {
onExited: {
tooltip.hide()
}
onClicked: function () {
onClicked: {
tooltip.hide()
calendar.isLoaded = !calendar.isLoaded
}
+1 -1
View File
@@ -70,7 +70,7 @@ Item {
Audio.volumeDecrement()
}
}
onClicked: function () {
onClicked: {
audioDeviceSelector.isLoaded = !audioDeviceSelector.isLoaded
}
}
+1 -1
View File
@@ -24,7 +24,7 @@ NIconButton {
return connected ? network.signalIcon(parent.currentSignal) : "wifi_off"
}
tooltipText: "WiFi Networks"
onClicked: function () {
onClicked: {
if (!wifiMenuLoader.active) {
wifiMenuLoader.isLoaded = true
}
+2 -2
View File
@@ -78,7 +78,7 @@ NLoader {
NIconButton {
icon: "refresh"
sizeMultiplier: 0.8
onClicked: function () {
onClicked: {
network.refreshNetworks()
}
}
@@ -86,7 +86,7 @@ NLoader {
NIconButton {
icon: "close"
sizeMultiplier: 0.8
onClicked: function () {
onClicked: {
wifiPanel.visible = false
network.onMenuClosed()
}