X-Git-Url: https://www.flypig.org.uk/git/?p=openvpnui.git;a=blobdiff_plain;f=qml%2Fpages%2FConnectPage.qml;h=08cbdb6543f32c8be69669926a3599f23be7b82c;hp=665226e1be0e42a502c4e7f379d81279592c8a32;hb=c45d410d3b300c1e37398e8c6c2bd453ee3da696;hpb=7a870818f95f0dd0ced94643aac1bbae6f68b2fd diff --git a/qml/pages/ConnectPage.qml b/qml/pages/ConnectPage.qml index 665226e..08cbdb6 100644 --- a/qml/pages/ConnectPage.qml +++ b/qml/pages/ConnectPage.qml @@ -122,7 +122,10 @@ Page { id: connect text: "Connect" enabled: true - onClicked: VpnControl.vpnConnect() + onClicked: { + VpnControl.logAppend('\n') + VpnControl.vpnConnect() + } } Button { id : disconnect @@ -131,6 +134,7 @@ Page { onClicked: VpnControl.vpnDisconnect(); } } + Label { id: statusText text: "No status" @@ -144,7 +148,7 @@ Page { BusyIndicator { id: busy running: false - size: BusyIndicatorSize.Large + size: BusyIndicatorSize.Medium anchors.verticalCenter: parent.verticalCenter } } @@ -157,25 +161,27 @@ Page { } //radius: Theme.paddingSmall anchors.horizontalCenter: parent.horizontalCenter - height: (20 * Theme.fontSizeTiny) + (2 * Theme.paddingLarge) + height: (24 * Theme.fontSizeTiny) + (2 * Theme.paddingLarge) width: parent.width - 2 * Theme.paddingLarge x: Theme.paddingLarge + //TextEdit { Label { id: logOutput textFormat: Text.PlainText width: parent.width - 2 * Theme.paddingSmall - height: parent.height - 2 * Theme.paddingSmall + height: parent.height - 0 * Theme.paddingSmall wrapMode: Text.WrapAnywhere font.pixelSize: Theme.fontSizeTiny * 0.6 font.family: "Monospace" color: Theme.highlightColor visible: true text: VpnControl.logText - maximumLineCount: Math.floor(18 / 0.6) verticalAlignment: Text.AlignBottom x: Theme.paddingSmall y: Theme.paddingSmall + //readOnly: true + clip: true } } }