diff options
author | Lars Knoll <lars.knoll@nokia.com> | 2009-05-19 10:43:51 (GMT) |
---|---|---|
committer | Lars Knoll <lars.knoll@nokia.com> | 2009-05-19 12:08:12 (GMT) |
commit | 21b1acda8aa202c6bd086344888ecb29757fe5bf (patch) | |
tree | 2dadf7eedb318be559c6da0b1bb66edb00b3260f /demos | |
parent | 0a2258c3e7b49b7383ef9ace11a4d8a448b7def1 (diff) | |
download | Qt-21b1acda8aa202c6bd086344888ecb29757fe5bf.zip Qt-21b1acda8aa202c6bd086344888ecb29757fe5bf.tar.gz Qt-21b1acda8aa202c6bd086344888ecb29757fe5bf.tar.bz2 |
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.
Diffstat (limited to 'demos')
-rw-r--r-- | demos/declarative/webbrowser/webbrowser.qml | 16 |
1 files 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 } } } |