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

@ -13,7 +13,8 @@ ComboBox {
property list<string> optionsKeys: []
property list<string> optionsLabels: []
property string currentKey: ''
property var onSelected: function (string) {}
signal selected(string key)
Layout.fillWidth: true
Layout.preferredHeight: height
@ -21,7 +22,7 @@ ComboBox {
model: optionsKeys
currentIndex: model.indexOf(currentKey)
onActivated: {
root.onSelected(model[currentIndex])
root.selected(model[currentIndex])
}
// Rounded background