Don't copy combined invisible names

This commit is contained in:
miruka
2019-09-01 15:44:06 -04:00
parent 9936a7e2ee
commit 85aaf7bcce
4 changed files with 14 additions and 3 deletions

View File

@@ -23,9 +23,18 @@ TextEdit {
// in container.joinedSelection. If it's a decimal number, if gets one \n.
property real index
property HSelectableLabelContainer container
property bool selectable: true
function updateSelection() {
if (! selectable && label.selectedText) {
label.deselect()
updateContainerSelectedTexts()
return
}
if (! selectable) return
if (! container.reversed &&
container.selectionStart <= container.selectionEnd ||