jtkorhonen@0: /**************************************************************************** jtkorhonen@0: ** jtkorhonen@0: ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). jtkorhonen@0: ** All rights reserved. jtkorhonen@0: ** Contact: Nokia Corporation (qt-info@nokia.com) jtkorhonen@0: ** jtkorhonen@0: ** This file is part of the examples of the Qt Toolkit. jtkorhonen@0: ** jtkorhonen@0: ** $QT_BEGIN_LICENSE:LGPL$ jtkorhonen@0: ** Commercial Usage jtkorhonen@0: ** Licensees holding valid Qt Commercial licenses may use this file in jtkorhonen@0: ** accordance with the Qt Commercial License Agreement provided with the jtkorhonen@0: ** Software or, alternatively, in accordance with the terms contained in jtkorhonen@0: ** a written agreement between you and Nokia. jtkorhonen@0: ** jtkorhonen@0: ** GNU Lesser General Public License Usage jtkorhonen@0: ** Alternatively, this file may be used under the terms of the GNU Lesser jtkorhonen@0: ** General Public License version 2.1 as published by the Free Software jtkorhonen@0: ** Foundation and appearing in the file LICENSE.LGPL included in the jtkorhonen@0: ** packaging of this file. Please review the following information to jtkorhonen@0: ** ensure the GNU Lesser General Public License version 2.1 requirements jtkorhonen@0: ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. jtkorhonen@0: ** jtkorhonen@0: ** In addition, as a special exception, Nokia gives you certain additional jtkorhonen@0: ** rights. These rights are described in the Nokia Qt LGPL Exception jtkorhonen@0: ** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. jtkorhonen@0: ** jtkorhonen@0: ** GNU General Public License Usage jtkorhonen@0: ** Alternatively, this file may be used under the terms of the GNU jtkorhonen@0: ** General Public License version 3.0 as published by the Free Software jtkorhonen@0: ** Foundation and appearing in the file LICENSE.GPL included in the jtkorhonen@0: ** packaging of this file. Please review the following information to jtkorhonen@0: ** ensure the GNU General Public License version 3.0 requirements will be jtkorhonen@0: ** met: http://www.gnu.org/copyleft/gpl.html. jtkorhonen@0: ** jtkorhonen@0: ** If you have questions regarding the use of this file, please contact jtkorhonen@0: ** Nokia at qt-info@nokia.com. jtkorhonen@0: ** $QT_END_LICENSE$ jtkorhonen@0: ** jtkorhonen@0: ** Copyright (C) Jari Korhonen, 2010 (HgExplorer specific parts, under lgpl) jtkorhonen@0: ****************************************************************************/ jtkorhonen@0: jtkorhonen@0: #include jtkorhonen@0: jtkorhonen@0: #ifdef Q_WS_X11 jtkorhonen@0: #include jtkorhonen@0: #endif jtkorhonen@0: jtkorhonen@0: #ifdef Q_WS_WIN jtkorhonen@0: #include jtkorhonen@0: #endif jtkorhonen@0: jtkorhonen@0: #include "mainwindow.h" jtkorhonen@0: jtkorhonen@0: int main(int argc, char *argv[]) jtkorhonen@0: { jtkorhonen@0: Q_INIT_RESOURCE(hgexplorer); jtkorhonen@0: jtkorhonen@0: QApplication app(argc, argv); jtkorhonen@0: jtkorhonen@0: app.setApplicationName(APPNAME); jtkorhonen@0: jtkorhonen@0: #ifdef Q_WS_X11 jtkorhonen@0: app.setStyle(new QCleanlooksStyle); jtkorhonen@0: #endif jtkorhonen@0: jtkorhonen@0: #ifdef Q_WS_WIN jtkorhonen@0: app.setStyle(new QWindowsXPStyle); jtkorhonen@0: #endif jtkorhonen@0: jtkorhonen@0: MainWindow mainWin; jtkorhonen@0: mainWin.show(); jtkorhonen@0: return app.exec(); jtkorhonen@0: }