Replaced all NWidgets callback by proper signals
This commit is contained in:
parent
1a7a0dbb16
commit
a7d4e0ec1d
27 changed files with 93 additions and 88 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue