summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorMartin Jones <martin.jones@nokia.com>2010-04-30 07:24:07 (GMT)
committerMartin Jones <martin.jones@nokia.com>2010-04-30 07:24:07 (GMT)
commit89f21d7269ae7bf29e718958d00da84e5c60257f (patch)
treedc78b51060cb34430177a7a1912d0ebbd674795d /examples
parent3011031d0d95d47e7597a81ecbf47004664c4ed9 (diff)
parentd8683cd18c852569672e43237c06dc619f193eba (diff)
downloadQt-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.qml17
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"
+ }
+ }
+ }
+}