diff options
author | Adrian Kummerlaender | 2015-07-05 18:41:30 +0200 |
---|---|---|
committer | Adrian Kummerlaender | 2015-07-05 18:41:30 +0200 |
commit | ef1a71f77d318ef75e04467bab17a650c0b4d868 (patch) | |
tree | 97287cc6a0b086e31c5b2d3d306c059413b0ece6 /qml/main.qml | |
parent | 78966dc00419a4f5fe5fec4725062a4a0f380228 (diff) | |
download | MetaTerm-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/main.qml')
-rw-r--r-- | qml/main.qml | 8 |
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 - } } |