diff options
author | Martin Jones <martin.jones@nokia.com> | 2010-04-30 07:24:07 (GMT) |
---|---|---|
committer | Martin Jones <martin.jones@nokia.com> | 2010-04-30 07:24:07 (GMT) |
commit | 89f21d7269ae7bf29e718958d00da84e5c60257f (patch) | |
tree | dc78b51060cb34430177a7a1912d0ebbd674795d /examples | |
parent | 3011031d0d95d47e7597a81ecbf47004664c4ed9 (diff) | |
parent | d8683cd18c852569672e43237c06dc619f193eba (diff) | |
download | Qt-89f21d7269ae7bf29e718958d00da84e5c60257f.zip Qt-89f21d7269ae7bf29e718958d00da84e5c60257f.tar.gz Qt-89f21d7269ae7bf29e718958d00da84e5c60257f.tar.bz2 |
Merge branch '4.7' of scm.dev.nokia.troll.no:qt/qt-qml into 4.7
Diffstat (limited to 'examples')
-rw-r--r-- | examples/declarative/fonts/availableFonts.qml | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/examples/declarative/fonts/availableFonts.qml b/examples/declarative/fonts/availableFonts.qml new file mode 100644 index 0000000..defa4ce --- /dev/null +++ b/examples/declarative/fonts/availableFonts.qml @@ -0,0 +1,17 @@ +import Qt 4.7 + +Rectangle { + width: 480; height: 640; color: "steelblue" + + ListView { + anchors.fill: parent; model: Qt.fontFamilies() + + delegate: Item { + height: 40; width: ListView.view.width + Text { + anchors.centerIn: parent + text: modelData; font.family: modelData; font.pixelSize: 24; color: "white" + } + } + } +} |