diff options
author | Qt Continuous Integration System <qt-info@nokia.com> | 2010-09-08 00:56:36 (GMT) |
---|---|---|
committer | Qt Continuous Integration System <qt-info@nokia.com> | 2010-09-08 00:56:36 (GMT) |
commit | ff9eebaa9adb9cd41e97ac806238888546e77294 (patch) | |
tree | c2d0c03d7b45222f7586f67a52939af0033c8ab8 /doc/src/snippets/declarative/qml-documents/inline-text-component.qml | |
parent | e41274fede7f35324e37438bd8c08fd78e0ca29f (diff) | |
parent | 332c194a66ef37179c3267c2f4acd1f6b6feb7f3 (diff) | |
download | Qt-ff9eebaa9adb9cd41e97ac806238888546e77294.zip Qt-ff9eebaa9adb9cd41e97ac806238888546e77294.tar.gz Qt-ff9eebaa9adb9cd41e97ac806238888546e77294.tar.bz2 |
Merge branch '4.7' of scm.dev.nokia.troll.no:qt/oslo-staging-2 into 4.7-integration
* '4.7' of scm.dev.nokia.troll.no:qt/oslo-staging-2:
Doc: More work on the QML documentation.
Doc: Worked on two more elements, replacing an image.
Doc: qdoc fixes.
Doc: Added types to method and signal documentation; other fixes.
Doc: Fixed autotest breakage caused by snippets.
Doc: More work on QML documentation and snippets.
Doc: Fixed links and markup.
Doc: More work on the QML documentation.
Doc: Minor improvements and fixes.
Doc: Fixed incorrect use of commands to mark documentation.
Doc: Started to improve QML reference documentation.
Doc: Moved the inline code into snippet files.
Doc: Started to reorganize the QML documentation structure.
Doc: Used snippets for the Beginning QML document. License update.
Doc: Updated QML snippets.
Doc: Updated licenses to the three clause BSD license.
Doc: Made more improvements to the QML documentation.
Doc: Started work to tidy up existing QML docs.
Diffstat (limited to 'doc/src/snippets/declarative/qml-documents/inline-text-component.qml')
-rw-r--r-- | doc/src/snippets/declarative/qml-documents/inline-text-component.qml | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/doc/src/snippets/declarative/qml-documents/inline-text-component.qml b/doc/src/snippets/declarative/qml-documents/inline-text-component.qml new file mode 100644 index 0000000..83ba213 --- /dev/null +++ b/doc/src/snippets/declarative/qml-documents/inline-text-component.qml @@ -0,0 +1,55 @@ +/**************************************************************************** +** +** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). +** All rights reserved. +** Contact: Nokia Corporation (qt-info@nokia.com) +** +** This file is part of the QtDeclarative module of the Qt Toolkit. +** +** $QT_BEGIN_LICENSE:BSD$ +** You may use this file under the terms of the BSD license as follows: +** +** "Redistribution and use in source and binary forms, with or without +** modification, are permitted provided that the following conditions are +** met: +** * Redistributions of source code must retain the above copyright +** notice, this list of conditions and the following disclaimer. +** * Redistributions in binary form must reproduce the above copyright +** notice, this list of conditions and the following disclaimer in +** the documentation and/or other materials provided with the +** distribution. +** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor +** the names of its contributors may be used to endorse or promote +** products derived from this software without specific prior written +** permission. +** +** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE." +** $QT_END_LICENSE$ +** +****************************************************************************/ + +//! [document] +import Qt 4.7 + +Rectangle { + width: 240; height: 320; + + ListView { + anchors.fill: parent + model: contactModel + delegate: Text { + text: modelData.firstName + " " + modelData.lastName + } + } +} +//! [document] |