aboutsummaryrefslogtreecommitdiff
path: root/qml/main.qml
diff options
context:
space:
mode:
authorAdrian Kummerlaender2015-07-06 20:26:14 +0200
committerAdrian Kummerlaender2015-07-06 20:26:14 +0200
commitcdec039fe30ec2bcb75a9a1596b32fa6eeed6b74 (patch)
treeace3a2328e3e755a85cfea400d4705a5b42e34a4 /qml/main.qml
parentef1a71f77d318ef75e04467bab17a650c0b4d868 (diff)
downloadMetaTerm-cdec039fe30ec2bcb75a9a1596b32fa6eeed6b74.tar
MetaTerm-cdec039fe30ec2bcb75a9a1596b32fa6eeed6b74.tar.gz
MetaTerm-cdec039fe30ec2bcb75a9a1596b32fa6eeed6b74.tar.bz2
MetaTerm-cdec039fe30ec2bcb75a9a1596b32fa6eeed6b74.tar.lz
MetaTerm-cdec039fe30ec2bcb75a9a1596b32fa6eeed6b74.tar.xz
MetaTerm-cdec039fe30ec2bcb75a9a1596b32fa6eeed6b74.tar.zst
MetaTerm-cdec039fe30ec2bcb75a9a1596b32fa6eeed6b74.zip
Added `terminal` property to TerminalItem
Makes it easier to access the `QMLTermWidget` instance from both outside and inside `TerminalItem`
Diffstat (limited to 'qml/main.qml')
-rw-r--r--qml/main.qml4
1 files changed, 3 insertions, 1 deletions
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() {