diff --git a/src/qml/Base/HSelectableLabel.qml b/src/qml/Base/HSelectableLabel.qml index 4fba2555..8f8219ab 100644 --- a/src/qml/Base/HSelectableLabel.qml +++ b/src/qml/Base/HSelectableLabel.qml @@ -96,11 +96,6 @@ TextEdit { updateContainerSelectedTexts() } - function selectAllTextPlus() { - // Unimplemented by default - container.clearSelection() - } - Connections { target: container @@ -128,7 +123,6 @@ TextEdit { onTapped: { tapCount == 2 ? selectWordAt(eventPoint.position) : tapCount == 3 ? selectAllText() : - tapCount == 4 ? selectAllTextPlus() : container.clearSelection() } } diff --git a/src/qml/Chat/Timeline/EventContent.qml b/src/qml/Chat/Timeline/EventContent.qml index ae93adeb..487bf004 100644 --- a/src/qml/Chat/Timeline/EventContent.qml +++ b/src/qml/Chat/Timeline/EventContent.qml @@ -92,8 +92,12 @@ Row { // horizontalAlignment: onRight ? Text.AlignRight : Text.AlignLeft horizontalAlignment: Text.AlignLeft - function selectAllTextPlus() { - contentLabel.selectAllTextPlus() + function selectAllText() { + // select the sender name, body and date + container.clearSelection() + nameLabel.selectAll() + contentLabel.selectAll() + contentLabel.updateContainerSelectedTexts() } HoverHandler { id: nameHover } @@ -139,14 +143,6 @@ Row { contentLabel.updateContainerSelectedTexts() } - function selectAllTextPlus() { - // select the sender name, body and date - container.clearSelection() - nameLabel.selectAll() - contentLabel.selectAll() - contentLabel.updateContainerSelectedTexts() - } - HoverHandler { id: contentHover } }