From 607e86675e831a1fa70de5b2813a0e0f9d1bbd56 Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Tue, 21 Jul 2015 18:25:52 +0200 Subject: Introduced `frameWidth` property and defined minimum terminal lines --- qml/EmbeddedTerminal.qml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'qml/EmbeddedTerminal.qml') diff --git a/qml/EmbeddedTerminal.qml b/qml/EmbeddedTerminal.qml index 1bfa725..2e58fa9 100644 --- a/qml/EmbeddedTerminal.qml +++ b/qml/EmbeddedTerminal.qml @@ -8,9 +8,10 @@ Item { property string program property string workingDirectory property int lines + property int frameWidth : 10 height: terminal.height - width: parent.width + width: parent.width - frameWidth function select() { highlighter.select() } function deselect() { highlighter.deselect() } @@ -28,7 +29,7 @@ Item { Rectangle { id: highlighter - width: 10 + width: item.frameWidth Layout.fillHeight: true color: "#909636" @@ -52,11 +53,8 @@ Item { font.family: "Monospace" font.pointSize: 8 - width: parent.width - height: fontMetrics.height * item.lines - Layout.fillWidth: true - Layout.preferredHeight: height + Layout.preferredHeight: fontMetrics.height * item.lines colorScheme: "cool-retro-term" -- cgit v1.2.3