aboutsummaryrefslogtreecommitdiff
path: root/qml/TerminalItem.qml
diff options
context:
space:
mode:
authorAdrian Kummerlaender2015-07-05 18:41:30 +0200
committerAdrian Kummerlaender2015-07-05 18:41:30 +0200
commitef1a71f77d318ef75e04467bab17a650c0b4d868 (patch)
tree97287cc6a0b086e31c5b2d3d306c059413b0ece6 /qml/TerminalItem.qml
parent78966dc00419a4f5fe5fec4725062a4a0f380228 (diff)
downloadMetaTerm-ef1a71f77d318ef75e04467bab17a650c0b4d868.tar
MetaTerm-ef1a71f77d318ef75e04467bab17a650c0b4d868.tar.gz
MetaTerm-ef1a71f77d318ef75e04467bab17a650c0b4d868.tar.bz2
MetaTerm-ef1a71f77d318ef75e04467bab17a650c0b4d868.tar.lz
MetaTerm-ef1a71f77d318ef75e04467bab17a650c0b4d868.tar.xz
MetaTerm-ef1a71f77d318ef75e04467bab17a650c0b4d868.tar.zst
MetaTerm-ef1a71f77d318ef75e04467bab17a650c0b4d868.zip
Replaced ScrollBar with terminal instance index
Diffstat (limited to 'qml/TerminalItem.qml')
-rw-r--r--qml/TerminalItem.qml23
1 files changed, 19 insertions, 4 deletions
diff --git a/qml/TerminalItem.qml b/qml/TerminalItem.qml
index 6c19c45..51ef98c 100644
--- a/qml/TerminalItem.qml
+++ b/qml/TerminalItem.qml
@@ -4,6 +4,9 @@ import QtQuick.Layouts 1.1
Item {
id: terminalItem
+
+ property int index : 0
+
signal executed
height: elementList.height
@@ -47,7 +50,7 @@ Item {
id: elementList
function createTerminal(program) {
- var terminal = Qt.createComponent("qrc:/EmbeddedTerminal.qml");
+ var terminal = Qt.createComponent("qrc:/EmbeddedTerminal.qml");
var instantiateTerminal = function() {
terminal.createObject(elementList, {
"columns": 90,
@@ -62,7 +65,7 @@ Item {
instantiateTerminal();
} else {
terminal.statusChanged.connect(instantiateTerminal);
- }
+ }
}
RowLayout {
@@ -93,10 +96,13 @@ Item {
TextInput {
id: command
- font.pointSize: 18
+ font {
+ family: "Monospace"
+ pointSize: 18
+ }
color: "white"
- selectedTextColor: "#161616"
selectionColor: "white"
+ selectedTextColor: "#161616"
selectByMouse: true
focus: true
@@ -112,6 +118,15 @@ Item {
}
}
}
+
+ Text {
+ text: terminalItem.index
+ font {
+ family: "Monospace"
+ pointSize: 12
+ }
+ color: "white"
+ }
}
}
}