From 21b1acda8aa202c6bd086344888ecb29757fe5bf Mon Sep 17 00:00:00 2001 From: Lars Knoll Date: Tue, 19 May 2009 12:43:51 +0200 Subject: make the web browser URL field work a little better The return key still doesn't do what it should do, but that's partly the fault of the KeyProxy's QML definition not working correctly. --- demos/declarative/webbrowser/webbrowser.qml | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/demos/declarative/webbrowser/webbrowser.qml b/demos/declarative/webbrowser/webbrowser.qml index 4b03b63..df0e1a7 100644 --- a/demos/declarative/webbrowser/webbrowser.qml +++ b/demos/declarative/webbrowser/webbrowser.qml @@ -114,6 +114,7 @@ Item { opacity: 1-Header.progressOff clip: true } + /* KeyProxy { id: proxy @@ -140,24 +141,11 @@ Item { anchors.leftMargin: 6 anchors.verticalCenter: UrlBox.verticalCenter anchors.verticalCenterOffset: 1 - - opacity: 0 - } - Text { - id: ShowUrl - text: WebView.url == '' ? ' ' : WebView.url - font.size: 11 - color: "#555555" - anchors.left: UrlBox.left - anchors.right: UrlBox.right - anchors.leftMargin: 6 - anchors.verticalCenter: UrlBox.verticalCenter - anchors.verticalCenterOffset: 1 } } MouseRegion { anchors.fill: UrlBox - onClicked: { proxy.focus=true } + onClicked: { EditUrl.focus=true } } } -- cgit v0.12