mirror of
https://github.com/zoriya/noctalia-shell.git
synced 2026-08-15 10:33:34 +00:00
Replaced all NWidgets callback by proper signals
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user