From: Jiří Matěják Date: Fri, 27 Apr 2018 15:40:02 +0000 (+0200) Subject: textfield added X-Git-Url: http://rtime.felk.cvut.cz/gitweb/coffee/mtbrowser.git/commitdiff_plain/1e1bde036abd27c18c73add12ecd9517540b1e8f textfield added --- diff --git a/main.qml b/main.qml index 9f5dadc..754b329 100644 --- a/main.qml +++ b/main.qml @@ -65,6 +65,7 @@ Window { anchors.right: parent.right RowLayout { + anchors.fill: parent ToolButton { text: qsTr("←") @@ -78,20 +79,23 @@ Window { enabled: webView.canGoForward } + TextField { + id: urlText + Layout.fillWidth: true + selectByMouse: true + onEditingFinished: webView.url = urlText.text + } + ToolButton { text: qsTr("↻") onClicked: webView.reload() } - - Label { - id: urlText - } } } WebEngineView { id: webView - url: "https://google.cz/" + url: "http://localhost/" anchors.left: parent.left anchors.top: toolBar.bottom anchors.right: parent.right