aboutsummaryrefslogtreecommitdiff
path: root/qml/main.qml
diff options
context:
space:
mode:
authorAdrian Kummerlaender2015-07-18 22:06:13 +0200
committerAdrian Kummerlaender2015-07-18 22:06:13 +0200
commitee80c422c341068188820a9e5d9757be80735012 (patch)
tree149dfb5a2adf2ba9aac5d4f53d6f27b346811aed /qml/main.qml
parentdbb98babd5de116609e849bba4382cf9af9458bc (diff)
downloadMetaTerm-ee80c422c341068188820a9e5d9757be80735012.tar
MetaTerm-ee80c422c341068188820a9e5d9757be80735012.tar.gz
MetaTerm-ee80c422c341068188820a9e5d9757be80735012.tar.bz2
MetaTerm-ee80c422c341068188820a9e5d9757be80735012.tar.lz
MetaTerm-ee80c422c341068188820a9e5d9757be80735012.tar.xz
MetaTerm-ee80c422c341068188820a9e5d9757be80735012.tar.zst
MetaTerm-ee80c422c341068188820a9e5d9757be80735012.zip
Moved terminal resizing methods to `TerminalItem`
Diffstat (limited to 'qml/main.qml')
-rw-r--r--qml/main.qml32
1 files changed, 4 insertions, 28 deletions
diff --git a/qml/main.qml b/qml/main.qml
index 3a4bad2..a2355e9 100644
--- a/qml/main.qml
+++ b/qml/main.qml
@@ -159,52 +159,28 @@ ApplicationWindow {
id: heightenTerminalAction
shortcut: "Shift+J"
enabled: false
- onTriggered: {
- var current = terminalList.getCurrent().terminal;
-
- if ( current !== null ) {
- current.lines += 1;
- }
- }
+ onTriggered: terminalList.getCurrent().heighten()
}
Action {
id: shortenTerminalAction
shortcut: "Shift+K"
enabled: false
- onTriggered: {
- var current = terminalList.getCurrent().terminal;
-
- if ( current !== null ) {
- current.lines -= 1;
- }
- }
+ onTriggered: terminalList.getCurrent().shorten()
}
Action {
id: widenTerminalAction
shortcut: "Shift+L"
enabled: false
- onTriggered: {
- var current = terminalList.getCurrent().terminal;
-
- if ( current !== null ) {
- current.columns += 1;
- }
- }
+ onTriggered: terminalList.getCurrent().widen()
}
Action {
id: narrowTerminalAction
shortcut: "Shift+H"
enabled: false
- onTriggered: {
- var current = terminalList.getCurrent().terminal;
-
- if ( current !== null ) {
- current.columns -= 1;
- }
- }
+ onTriggered: terminalList.getCurrent().narrow()
}
Action {