better scrollbar in codeblocks + enter anim for delegates
This commit is contained in:
@@ -10,6 +10,7 @@ DialogRowButton {
|
||||
|
||||
required property var model
|
||||
property var selectedItem
|
||||
property var initialSelect
|
||||
|
||||
function keyFor(item: var): string {
|
||||
return item.id;
|
||||
@@ -91,7 +92,11 @@ DialogRowButton {
|
||||
}
|
||||
|
||||
onOpenChanged: {
|
||||
if (open)
|
||||
selectedItem = null;
|
||||
if (open) {
|
||||
if (!initialSelect)
|
||||
selectedItem = null;
|
||||
else
|
||||
selectedItem = initialSelect;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user