aboutsummaryrefslogtreecommitdiff
path: root/src/widget/HistoryViewer.qml
blob: ca042f41c852375cbc373d2104d99f8dd075d318 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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()
	}
}