aboutsummaryrefslogtreecommitdiff
path: root/qml/main.qml
diff options
context:
space:
mode:
Diffstat (limited to 'qml/main.qml')
-rw-r--r--qml/main.qml8
1 files changed, 2 insertions, 6 deletions
diff --git a/qml/main.qml b/qml/main.qml
index 1e0db9d..48be124 100644
--- a/qml/main.qml
+++ b/qml/main.qml
@@ -29,9 +29,10 @@ ApplicationWindow {
onHeightChanged: scrollTo(activeItem)
function createItem() {
- var terminalItem = Qt.createComponent("qrc:/TerminalItem.qml");
+ var terminalItem = Qt.createComponent("qrc:/TerminalItem.qml");
var instantiateTerminal = function() {
var instance = terminalItem.createObject(terminalList, {
+ "index": terminalList.children.length,
"width": terminalListFlickable.width
});
instance.onExecuted.connect(createItem);
@@ -160,9 +161,4 @@ ApplicationWindow {
enabled: false
onTriggered: terminalList.selectItem(0)
}
-
- ScrollBar {
- flickable: terminalListFlickable
- handleSize: 10
- }
}