From: Jiří Matěják Date: Fri, 27 Apr 2018 16:02:39 +0000 (+0200) Subject: google search and done X-Git-Url: http://rtime.felk.cvut.cz/gitweb/coffee/mtbrowser.git/commitdiff_plain/9135d2bd6ac32bec8f42e2bc600cdcf80f60c14c google search and done --- diff --git a/main.qml b/main.qml index 754b329..bf89577 100644 --- a/main.qml +++ b/main.qml @@ -83,13 +83,23 @@ Window { id: urlText Layout.fillWidth: true selectByMouse: true - onEditingFinished: webView.url = urlText.text + onEditingFinished: { + webView.url = "https://www.google.com/search?ie=UTF-8&q=" + urlText.text + clear() + } } ToolButton { + id: reload text: qsTr("↻") onClicked: webView.reload() } + + ToolButton { + id: stop + text: qsTr("×") + onClicked: webView.url = "http://localhost/" + } } } @@ -100,7 +110,7 @@ Window { anchors.top: toolBar.bottom anchors.right: parent.right anchors.bottom: inputPanel.top - onUrlChanged: urlText.text = webView.url + //onUrlChanged: urlText.text = webView.url } InputPanel {