examples/QtQuick/telephonyexampleqml/main.cpp

00001 /*
00002 ** $QT_BEGIN_LICENSE:BSD$
00003 ** You may use this file under the terms of the BSD license as follows:
00004 **
00005 ** "Redistribution and use in source and binary forms, with or without
00006 ** modification, are permitted provided that the following conditions are
00007 ** met:
00008 **   * Redistributions of source code must retain the above copyright
00009 **     notice, this list of conditions and the following disclaimer.
00010 **   * Redistributions in binary form must reproduce the above copyright
00011 **     notice, this list of conditions and the following disclaimer in
00012 **     the documentation and/or other materials provided with the
00013 **     distribution.
00014 **   * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
00015 **     the names of its contributors may be used to endorse or promote
00016 **     products derived from this software without specific prior written
00017 **     permission.
00018 **
00019 ** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
00020 ** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
00021 ** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
00022 ** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
00023 ** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
00024 ** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
00025 ** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
00026 ** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
00027 ** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
00028 ** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
00029 ** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
00030 ** $QT_END_LICENSE$
00031 **
00032 ****************************************************************************/
00033 #include <QtGui/QApplication>
00034 #include "qmlapplicationviewer.h"
00035 
00036 /*
00037  * Entry point of the application. 
00038  */
00039 int main(int argc, char *argv[])
00040 {
00041     QApplication app(argc, argv);
00042 
00043     QmlApplicationViewer viewer;
00044     viewer.setOrientation(QmlApplicationViewer::ScreenOrientationLockPortrait);
00045     viewer.setMainQmlFile(QLatin1String("qml/telephonyexampleqml/main.qml"));
00046     viewer.showExpanded();
00047 
00048     return app.exec();
00049 }

Generated by  doxygen 1.6.2