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 ||

View File

@@ -53,6 +53,7 @@ Row {
width: parent.width
visible: ! hideNameLine
container: selectableLabelContainer
selectable: ! unselectableNameLine
// This is +0.1 and content is +0 instead of the opposite,
// because the eventList is reversed

View File

@@ -35,6 +35,9 @@ Column {
onRight ||
combine
readonly property bool unselectableNameLine:
hideNameLine && ! (onRight && ! combine)
width: eventList.width
topPadding: