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

View file

@ -21,17 +21,23 @@ NBox {
// Performance
NIconButton {
icon: "speed"
onClicked: function () {/* TODO: hook to power profile */ }
onClicked: {
/* TODO: hook to power profile */ }
}
// Balanced
NIconButton {
icon: "balance"
onClicked: function () {/* TODO: hook to power profile */ }
onClicked: {
/* TODO: hook to power profile */ }
}
// Eco
NIconButton {
icon: "eco"
onClicked: function () {/* TODO: hook to power profile */ }
onClicked: {
/* TODO: hook to power profile */ }
}
Item {
Layout.fillWidth: true

View file

@ -59,7 +59,7 @@ NBox {
}
NIconButton {
icon: "settings"
onClicked: function () {
onClicked: {
if (!root.settingsWindow) {
const comp = Qt.createComponent("../../Settings/SettingsWindow.qml")
if (comp.status === Component.Ready) {