summaryrefslogtreecommitdiffstats
path: root/demos
diff options
context:
space:
mode:
authorWarwick Allison <warwick.allison@nokia.com>2010-03-11 06:39:34 (GMT)
committerWarwick Allison <warwick.allison@nokia.com>2010-03-11 06:39:34 (GMT)
commit3548ee78b268a1ece0fe295528bf0dad871fb6af (patch)
treef2795ab1bd53b6693701d69540c94c8db1e0ba02 /demos
parent06feadb8eb0beb3422cf32abab7971f963de7ecf (diff)
downloadQt-3548ee78b268a1ece0fe295528bf0dad871fb6af.zip
Qt-3548ee78b268a1ece0fe295528bf0dad871fb6af.tar.gz
Qt-3548ee78b268a1ece0fe295528bf0dad871fb6af.tar.bz2
Truncate title at right if too long (cannot currently ElideRight and center).
Diffstat (limited to 'demos')
-rw-r--r--demos/declarative/webbrowser/content/RetractingWebBrowserHeader.qml4
1 files changed, 1 insertions, 3 deletions
diff --git a/demos/declarative/webbrowser/content/RetractingWebBrowserHeader.qml b/demos/declarative/webbrowser/content/RetractingWebBrowserHeader.qml
index 94c94f2..46dbc98 100644
--- a/demos/declarative/webbrowser/content/RetractingWebBrowserHeader.qml
+++ b/demos/declarative/webbrowser/content/RetractingWebBrowserHeader.qml
@@ -18,7 +18,7 @@ Image {
anchors.top: header.top
anchors.topMargin: 4
- anchors.horizontalCenter: parent.horizontalCenter
+ x: parent.width > headerIcon.width+headerText.width+6 ? (parent.width-headerIcon.width-headerText.width-6)/2 : 0
spacing: 6
Image {
@@ -30,8 +30,6 @@ Image {
id: headerText
text: webView.title!='' || webView.progress == 1.0 ? webView.title : 'Loading...'
- elide: Text.ElideRight
- //width: parent.width - headerIcon.width-4
color: "white"
styleColor: "black"