aboutsummaryrefslogtreecommitdiff
path: root/qml/main.qml
diff options
context:
space:
mode:
authorAdrian Kummerlaender2015-07-19 12:00:14 +0200
committerAdrian Kummerlaender2015-07-19 12:00:14 +0200
commitab1d14d90e69e35f45eefa8e7236d566fea81c41 (patch)
tree85942571b1058e8e10b0abce7f73b3de36474d49 /qml/main.qml
parentee80c422c341068188820a9e5d9757be80735012 (diff)
downloadMetaTerm-ab1d14d90e69e35f45eefa8e7236d566fea81c41.tar
MetaTerm-ab1d14d90e69e35f45eefa8e7236d566fea81c41.tar.gz
MetaTerm-ab1d14d90e69e35f45eefa8e7236d566fea81c41.tar.bz2
MetaTerm-ab1d14d90e69e35f45eefa8e7236d566fea81c41.tar.lz
MetaTerm-ab1d14d90e69e35f45eefa8e7236d566fea81c41.tar.xz
MetaTerm-ab1d14d90e69e35f45eefa8e7236d566fea81c41.tar.zst
MetaTerm-ab1d14d90e69e35f45eefa8e7236d566fea81c41.zip
Maximized terminal width
Terminal width is now automatically adjusted to use all available space. Commands to control horizontal terminal height were removed correspondingly.
Diffstat (limited to 'qml/main.qml')
-rw-r--r--qml/main.qml25
1 files changed, 6 insertions, 19 deletions
diff --git a/qml/main.qml b/qml/main.qml
index a2355e9..ef17a99 100644
--- a/qml/main.qml
+++ b/qml/main.qml
@@ -18,7 +18,7 @@ ApplicationWindow {
boundsBehavior: Flickable.StopAtBounds
contentHeight: terminalList.height
- contentWidth: terminalList.width
+ contentWidth: parent.width
pixelAligned: true
Column {
@@ -26,6 +26,11 @@ ApplicationWindow {
property int activeItem : 0
+ anchors {
+ left: parent.left
+ right: parent.right
+ }
+
spacing: 10
onHeightChanged: scrollTo(activeItem)
@@ -118,8 +123,6 @@ ApplicationWindow {
nextTerminalAction.enabled = false;
heightenTerminalAction.enabled = false;
shortenTerminalAction.enabled = false;
- widenTerminalAction.enabled = false;
- narrowTerminalAction.enabled = false;
prevTerminalAction.enabled = false;
lastTerminalAction.enabled = false;
firstTerminalAction.enabled = false;
@@ -137,8 +140,6 @@ ApplicationWindow {
nextTerminalAction.enabled = true;
heightenTerminalAction.enabled = true;
shortenTerminalAction.enabled = true;
- widenTerminalAction.enabled = true;
- narrowTerminalAction.enabled = true;
prevTerminalAction.enabled = true;
lastTerminalAction.enabled = true;
firstTerminalAction.enabled = true;
@@ -170,20 +171,6 @@ ApplicationWindow {
}
Action {
- id: widenTerminalAction
- shortcut: "Shift+L"
- enabled: false
- onTriggered: terminalList.getCurrent().widen()
- }
-
- Action {
- id: narrowTerminalAction
- shortcut: "Shift+H"
- enabled: false
- onTriggered: terminalList.getCurrent().narrow()
- }
-
- Action {
id: prevTerminalAction
shortcut: "k"
enabled: false