fix(StatusEmojiAndColorComboBox): proper setting initial selection
This commit is contained in:
parent
f1d2646fec
commit
720971c9db
|
@ -49,11 +49,24 @@ StatusComboBox {
|
||||||
*/
|
*/
|
||||||
property int delegateHeight: 44
|
property int delegateHeight: 44
|
||||||
|
|
||||||
|
ModelChangeTracker {
|
||||||
|
id: modelTracker
|
||||||
|
|
||||||
|
model: root.model
|
||||||
|
}
|
||||||
|
|
||||||
QtObject {
|
QtObject {
|
||||||
id: d
|
id: d
|
||||||
|
|
||||||
readonly property string emoji: ModelUtils.get(root.model, currentIndex, "emoji") ?? ""
|
readonly property string emoji: {
|
||||||
readonly property string color: ModelUtils.get(root.model, currentIndex, "color") ?? ""
|
modelTracker.revision
|
||||||
|
return ModelUtils.get(root.model, currentIndex, "emoji") ?? ""
|
||||||
|
}
|
||||||
|
|
||||||
|
readonly property string color: {
|
||||||
|
modelTracker.revision
|
||||||
|
return ModelUtils.get(root.model, currentIndex, "color") ?? ""
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
control.textRole: "name"
|
control.textRole: "name"
|
||||||
|
|
Loading…
Reference in New Issue