aboutsummaryrefslogtreecommitdiff
path: root/src/widget
diff options
context:
space:
mode:
authorAdrian Kummerlaender2015-08-30 18:04:42 +0200
committerAdrian Kummerlaender2015-08-30 18:04:42 +0200
commita8963d496108685bcc0fbf06ec869f7d920fe2fc (patch)
treef23694500498c1df5864a01e60c53a56a08f4638 /src/widget
parentb121ed57547f244d0045622a84bf7079c8a4b048 (diff)
downloadMetaTerm-a8963d496108685bcc0fbf06ec869f7d920fe2fc.tar
MetaTerm-a8963d496108685bcc0fbf06ec869f7d920fe2fc.tar.gz
MetaTerm-a8963d496108685bcc0fbf06ec869f7d920fe2fc.tar.bz2
MetaTerm-a8963d496108685bcc0fbf06ec869f7d920fe2fc.tar.lz
MetaTerm-a8963d496108685bcc0fbf06ec869f7d920fe2fc.tar.xz
MetaTerm-a8963d496108685bcc0fbf06ec869f7d920fe2fc.tar.zst
MetaTerm-a8963d496108685bcc0fbf06ec869f7d920fe2fc.zip
Make text in history view selectable
Diffstat (limited to 'src/widget')
-rw-r--r--src/widget/HistoryViewer.qml11
1 files changed, 8 insertions, 3 deletions
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()
}