From cdec039fe30ec2bcb75a9a1596b32fa6eeed6b74 Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Mon, 6 Jul 2015 20:26:14 +0200 Subject: Added `terminal` property to TerminalItem Makes it easier to access the `QMLTermWidget` instance from both outside and inside `TerminalItem` --- qml/main.qml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'qml/main.qml') diff --git a/qml/main.qml b/qml/main.qml index 48be124..70110db 100644 --- a/qml/main.qml +++ b/qml/main.qml @@ -13,6 +13,7 @@ ApplicationWindow { Flickable { id: terminalListFlickable + anchors.fill: parent boundsBehavior: Flickable.StopAtBounds @@ -22,10 +23,11 @@ ApplicationWindow { Column { id: terminalList - spacing: 10 property int activeItem : 0 + spacing: 10 + onHeightChanged: scrollTo(activeItem) function createItem() { -- cgit v1.2.3