aboutsummaryrefslogtreecommitdiff
path: root/qml/TerminalList.qml
diff options
context:
space:
mode:
authorAdrian Kummerlaender2015-08-13 20:19:42 +0200
committerAdrian Kummerlaender2015-08-13 20:19:42 +0200
commit358d64b332068103b24577bbf4c390b05dbe50df (patch)
tree7839cdccacac46c70fcf477c434bfee33866dd4f /qml/TerminalList.qml
parentaca84cb4ef24c1b4b9e3d53126081db8b14855e2 (diff)
downloadMetaTerm-358d64b332068103b24577bbf4c390b05dbe50df.tar
MetaTerm-358d64b332068103b24577bbf4c390b05dbe50df.tar.gz
MetaTerm-358d64b332068103b24577bbf4c390b05dbe50df.tar.bz2
MetaTerm-358d64b332068103b24577bbf4c390b05dbe50df.tar.lz
MetaTerm-358d64b332068103b24577bbf4c390b05dbe50df.tar.xz
MetaTerm-358d64b332068103b24577bbf4c390b05dbe50df.tar.zst
MetaTerm-358d64b332068103b24577bbf4c390b05dbe50df.zip
Implement `ls` command
This suggested adding an `iterate` helper method to `TerminalList` as well as line break logic to the command output log.
Diffstat (limited to 'qml/TerminalList.qml')
-rw-r--r--qml/TerminalList.qml6
1 files changed, 6 insertions, 0 deletions
diff --git a/qml/TerminalList.qml b/qml/TerminalList.qml
index fe89be5..013b394 100644
--- a/qml/TerminalList.qml
+++ b/qml/TerminalList.qml
@@ -89,6 +89,12 @@ Item {
return children[activeItem];
}
+ function iterate(func) {
+ for ( var i = 0; i < children.length; i++ ) {
+ func(children[i]);
+ }
+ }
+
Flickable {
id: flickable