aboutsummaryrefslogtreecommitdiff
path: root/src/widget/HistoryViewer.qml
diff options
context:
space:
mode:
Diffstat (limited to 'src/widget/HistoryViewer.qml')
-rw-r--r--src/widget/HistoryViewer.qml33
1 files changed, 33 insertions, 0 deletions
diff --git a/src/widget/HistoryViewer.qml b/src/widget/HistoryViewer.qml
new file mode 100644
index 0000000..ca042f4
--- /dev/null
+++ b/src/widget/HistoryViewer.qml
@@ -0,0 +1,33 @@
+import QtQuick 2.0
+import QMLTermWidget 1.0
+import QtQuick.Layouts 1.1
+
+Item {
+ id: item
+
+ property string history
+
+ height: viewer.height
+ width: parent.width - settings.terminal.frameWidth
+
+ Text {
+ id: viewer
+
+ anchors {
+ left: parent.left
+ leftMargin: settings.terminal.frameWidth
+ right: parent.right
+ }
+
+ color: settings.item.fontColor
+
+ font {
+ family: settings.terminal.fontFamily
+ pointSize: settings.terminal.fontSize
+ }
+
+ Layout.fillWidth: true
+
+ text: history.trim()
+ }
+}