diff options
author | Qt Continuous Integration System <qt-info@nokia.com> | 2010-04-30 11:43:12 (GMT) |
---|---|---|
committer | Qt Continuous Integration System <qt-info@nokia.com> | 2010-04-30 11:43:12 (GMT) |
commit | 6103c282707bac2d585473d45900d69d475cf0c2 (patch) | |
tree | c36bd5818b85bcdc62226b6f430576f08c303e1c /examples/declarative/fonts/availableFonts.qml | |
parent | 3e6a12e90d05d24bca68128d60215c207a416ef6 (diff) | |
parent | 0b7a84684e0b2065208172d7145e838c7a653b83 (diff) | |
download | Qt-6103c282707bac2d585473d45900d69d475cf0c2.zip Qt-6103c282707bac2d585473d45900d69d475cf0c2.tar.gz Qt-6103c282707bac2d585473d45900d69d475cf0c2.tar.bz2 |
Merge branch '4.7' of scm.dev.nokia.troll.no:qt/qt-qml into 4.7-integration
* '4.7' of scm.dev.nokia.troll.no:qt/qt-qml: (68 commits)
Don't create an anchors element so that we can check that there aren't any
Ensure eval and Function are in the correct scope
Add availableFonts.qml for fonts examples.
Add Qt.fontFamilies() method
Avoid regenerating PathView delegates needlessly
When a model delegate is released, remove it from the scene immediately.
Fix assignment of value types to javascript var.
More doc fixes
Make QDeclarativeParserStatus method pure virtual to encourage right code.
Doc fixes
Fix error string
Add QML value types for math3d types
Fix assert in qdeclarativepathview
Avoid divisions by zero in qdeclarativetimeline
Initialize variable.
Doc: mention that size of delegate affects flicking performance.
buffer new items on initialization.
Compile with QT_NO_GRAPHICSEFFECT.
Fix translation context when qsTr is used in PropertyChanges.
missed files
...
Diffstat (limited to 'examples/declarative/fonts/availableFonts.qml')
-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" + } + } + } +} |