Fix selection disappearing after delegates unload
Make delegates update their selection when they're loaded again.
This commit is contained in:
@@ -18,6 +18,8 @@ TextEdit {
|
||||
|
||||
onLinkActivated: Qt.openUrlExternally(link)
|
||||
|
||||
Component.onCompleted: updateSelection()
|
||||
|
||||
|
||||
// If index is a whole number, the label will get two \n before itself
|
||||
// in container.joinedSelection. If it's a decimal number, if gets one \n.
|
||||
|
@@ -82,5 +82,6 @@ FocusScope {
|
||||
onTapped: clearSelection()
|
||||
}
|
||||
|
||||
// This item will trigger the children labels's DropAreas
|
||||
Item { id: draggedItem }
|
||||
}
|
||||
|
Reference in New Issue
Block a user