From a8963d496108685bcc0fbf06ec869f7d920fe2fc Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Sun, 30 Aug 2015 18:04:42 +0200 Subject: Make text in history view selectable --- src/widget/HistoryViewer.qml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'src/widget') diff --git a/src/widget/HistoryViewer.qml b/src/widget/HistoryViewer.qml index ca042f4..60c749b 100644 --- a/src/widget/HistoryViewer.qml +++ b/src/widget/HistoryViewer.qml @@ -10,7 +10,7 @@ Item { height: viewer.height width: parent.width - settings.terminal.frameWidth - Text { + TextEdit { id: viewer anchors { @@ -19,14 +19,19 @@ Item { right: parent.right } - color: settings.item.fontColor + Layout.fillWidth: true font { family: settings.terminal.fontFamily pointSize: settings.terminal.fontSize } - Layout.fillWidth: true + color: settings.item.fontColor + selectionColor: settings.item.fontColor + selectedTextColor: settings.window.background + + selectByMouse: true + readOnly: true text: history.trim() } -- cgit v1.2.3