diff options
Diffstat (limited to 'qml/main.qml')
-rw-r--r-- | qml/main.qml | 32 |
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 { |