summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorYann Bodson <yann.bodson@nokia.com>2010-04-30 07:19:00 (GMT)
committerYann Bodson <yann.bodson@nokia.com>2010-04-30 07:19:00 (GMT)
commit5d34515465d143d08d198b799489f472741a340f (patch)
treebdba4e50632b6ebb07fac362f74c10e91dcc3be6 /examples
parent980e3f143505639ec8f1a8cc4d0ca2bbe59e69c7 (diff)
downloadQt-5d34515465d143d08d198b799489f472741a340f.zip
Qt-5d34515465d143d08d198b799489f472741a340f.tar.gz
Qt-5d34515465d143d08d198b799489f472741a340f.tar.bz2
Add availableFonts.qml for fonts examples.
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"
+ }
+ }
+ }
+}