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
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue