diff options
author | Qt Continuous Integration System <qt-info@nokia.com> | 2010-07-17 07:30:55 (GMT) |
---|---|---|
committer | Qt Continuous Integration System <qt-info@nokia.com> | 2010-07-17 07:30:55 (GMT) |
commit | e0bef52a555ad1a7566fa7dbae4b261d95555cff (patch) | |
tree | 750ba4b323230c5b941605d8705086ce8c7bb24a /examples/tutorials/modelview/7_selections/main.cpp | |
parent | b59d460fdf02c3e2cb5d4ccfd284057643b952a7 (diff) | |
parent | 11c80193772b51575a8c59d59215a8b9523647ea (diff) | |
download | Qt-e0bef52a555ad1a7566fa7dbae4b261d95555cff.zip Qt-e0bef52a555ad1a7566fa7dbae4b261d95555cff.tar.gz Qt-e0bef52a555ad1a7566fa7dbae4b261d95555cff.tar.bz2 |
Merge branch '4.7' of scm.dev.nokia.troll.no:qt/oslo-staging-1 into 4.7-integration
* '4.7' of scm.dev.nokia.troll.no:qt/oslo-staging-1: (28 commits)
Remove license headers from .pro files in new modelview examples.
Doc: Added license documentation for 3rd party code and data.
Do not crash if addrinfo signal does not contain ip address information.
Link to the unsinstalled libraries first.
Doc: Excluded the QML documentation from the Qt-only set.
Doc: Whitespace fixes.
Doc: Fixed whitespace issues.
Revert the change in applicationShouldTerminate().
Added LatinAmericaAndTheCaribbean country to the doc.
Network Proxy Query: Fix memleak on OS X
Doc: Reviewed Michael's model/view tutorial and overview document.
Doc: Removed accidentally committed file.
Doc: Fixed incorrect QML property type.
new image for tutorial.qdoc
replaced image, license headers, more links in modelview.qdoc file
Doc: Added the standard three clause BSD license header.
I've cleaned up the qdoc file a bit.
correction of snippet tags
integrating modelview tutorial in the build system, first attempt
new version of modelview.qdoc with snippets
...
Diffstat (limited to 'examples/tutorials/modelview/7_selections/main.cpp')
-rwxr-xr-x | examples/tutorials/modelview/7_selections/main.cpp | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/examples/tutorials/modelview/7_selections/main.cpp b/examples/tutorials/modelview/7_selections/main.cpp new file mode 100755 index 0000000..7be212e --- /dev/null +++ b/examples/tutorials/modelview/7_selections/main.cpp @@ -0,0 +1,50 @@ +/**************************************************************************** +** +** 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 examples 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$ +** +****************************************************************************/ + +#include <QtGui/QApplication> +#include "modelview.h" + +int main(int argc, char *argv[]) +{ + QApplication a(argc, argv); + ModelView w; + w.show(); + return a.exec(); +} |