diff options
author | Bea Lam <bea.lam@nokia.com> | 2010-06-24 04:44:24 (GMT) |
---|---|---|
committer | Bea Lam <bea.lam@nokia.com> | 2010-06-28 01:01:44 (GMT) |
commit | 708ec4f1b80d0e9dcc6601a13bc32aee192ba5a4 (patch) | |
tree | 5c6bb8c85f7b518440dafdd81501cfda486b0a58 /examples | |
parent | 8576e0f3652a8de05a5e59488b2611833944e6d6 (diff) | |
download | Qt-708ec4f1b80d0e9dcc6601a13bc32aee192ba5a4.zip Qt-708ec4f1b80d0e9dcc6601a13bc32aee192ba5a4.tar.gz Qt-708ec4f1b80d0e9dcc6601a13bc32aee192ba5a4.tar.bz2 |
Improve appearance when scaling
Diffstat (limited to 'examples')
-rw-r--r-- | examples/declarative/keyinteraction/focus/Core/ListViewDelegate.qml | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/examples/declarative/keyinteraction/focus/Core/ListViewDelegate.qml b/examples/declarative/keyinteraction/focus/Core/ListViewDelegate.qml index fba9b05..cc13637 100644 --- a/examples/declarative/keyinteraction/focus/Core/ListViewDelegate.qml +++ b/examples/declarative/keyinteraction/focus/Core/ListViewDelegate.qml @@ -42,7 +42,7 @@ import Qt 4.7 Item { id: container - x: 5; width: ListView.view.width - 10; height: 60 + width: ListView.view.width; height: 60; anchors.leftMargin: 10; anchors.rightMargin: 10 Rectangle { id: content @@ -51,11 +51,15 @@ Item { smooth: true radius: 10 - Rectangle { color: "#91AA9D"; x: 3; y: 3; width: parent.width - 6; height: parent.height - 6; radius: 8 } - Text { - text: "List element " + (index + 1); color: "#193441"; font.bold: false; anchors.centerIn: parent - font.pixelSize: 14 - } + Rectangle { anchors.fill: parent; anchors.margins: 3; color: "#91AA9D"; smooth: true; radius: 8 } + } + + Text { + id: label + anchors.centerIn: content + text: "List element " + (index + 1) + color: "#193441" + font.pixelSize: 14 } MouseArea { @@ -72,6 +76,7 @@ Item { states: State { name: "active"; when: container.focus == true PropertyChanges { target: content; color: "#FCFFF5"; scale: 1.1 } + PropertyChanges { target: label; font.pixelSize: 16 } } transitions: Transition { |