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