jtkorhonen@0
|
1 /****************************************************************************
|
jtkorhonen@0
|
2 **
|
jtkorhonen@0
|
3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
|
jtkorhonen@0
|
4 ** All rights reserved.
|
jtkorhonen@0
|
5 ** Contact: Nokia Corporation (qt-info@nokia.com)
|
jtkorhonen@0
|
6 **
|
jtkorhonen@0
|
7 ** This file is part of the examples of the Qt Toolkit.
|
jtkorhonen@0
|
8 **
|
jtkorhonen@0
|
9 ** $QT_BEGIN_LICENSE:LGPL$
|
jtkorhonen@0
|
10 ** Commercial Usage
|
jtkorhonen@0
|
11 ** Licensees holding valid Qt Commercial licenses may use this file in
|
jtkorhonen@0
|
12 ** accordance with the Qt Commercial License Agreement provided with the
|
jtkorhonen@0
|
13 ** Software or, alternatively, in accordance with the terms contained in
|
jtkorhonen@0
|
14 ** a written agreement between you and Nokia.
|
jtkorhonen@0
|
15 **
|
jtkorhonen@0
|
16 ** GNU Lesser General Public License Usage
|
jtkorhonen@0
|
17 ** Alternatively, this file may be used under the terms of the GNU Lesser
|
jtkorhonen@0
|
18 ** General Public License version 2.1 as published by the Free Software
|
jtkorhonen@0
|
19 ** Foundation and appearing in the file LICENSE.LGPL included in the
|
jtkorhonen@0
|
20 ** packaging of this file. Please review the following information to
|
jtkorhonen@0
|
21 ** ensure the GNU Lesser General Public License version 2.1 requirements
|
jtkorhonen@0
|
22 ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
|
jtkorhonen@0
|
23 **
|
jtkorhonen@0
|
24 ** In addition, as a special exception, Nokia gives you certain additional
|
jtkorhonen@0
|
25 ** rights. These rights are described in the Nokia Qt LGPL Exception
|
jtkorhonen@0
|
26 ** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
|
jtkorhonen@0
|
27 **
|
jtkorhonen@0
|
28 ** GNU General Public License Usage
|
jtkorhonen@0
|
29 ** Alternatively, this file may be used under the terms of the GNU
|
jtkorhonen@0
|
30 ** General Public License version 3.0 as published by the Free Software
|
jtkorhonen@0
|
31 ** Foundation and appearing in the file LICENSE.GPL included in the
|
jtkorhonen@0
|
32 ** packaging of this file. Please review the following information to
|
jtkorhonen@0
|
33 ** ensure the GNU General Public License version 3.0 requirements will be
|
jtkorhonen@0
|
34 ** met: http://www.gnu.org/copyleft/gpl.html.
|
jtkorhonen@0
|
35 **
|
jtkorhonen@0
|
36 ** If you have questions regarding the use of this file, please contact
|
jtkorhonen@0
|
37 ** Nokia at qt-info@nokia.com.
|
jtkorhonen@0
|
38 ** $QT_END_LICENSE$
|
jtkorhonen@0
|
39 **
|
jtkorhonen@0
|
40 ** Copyright (C) Jari Korhonen, 2010 (HgExplorer specific parts, under lgpl)
|
jtkorhonen@0
|
41 ****************************************************************************/
|
jtkorhonen@0
|
42
|
jtkorhonen@0
|
43 #include <QApplication>
|
jtkorhonen@0
|
44
|
jtkorhonen@0
|
45 #ifdef Q_WS_X11
|
jtkorhonen@0
|
46 #include <QCleanlooksStyle>
|
jtkorhonen@0
|
47 #endif
|
jtkorhonen@0
|
48
|
jtkorhonen@0
|
49 #ifdef Q_WS_WIN
|
jtkorhonen@0
|
50 #include <QWindowsXPStyle>
|
jtkorhonen@0
|
51 #endif
|
jtkorhonen@0
|
52
|
jtkorhonen@0
|
53 #include "mainwindow.h"
|
jtkorhonen@0
|
54
|
jtkorhonen@0
|
55 int main(int argc, char *argv[])
|
jtkorhonen@0
|
56 {
|
jtkorhonen@0
|
57 Q_INIT_RESOURCE(hgexplorer);
|
jtkorhonen@0
|
58
|
jtkorhonen@0
|
59 QApplication app(argc, argv);
|
jtkorhonen@0
|
60
|
jtkorhonen@0
|
61 app.setApplicationName(APPNAME);
|
jtkorhonen@0
|
62
|
jtkorhonen@0
|
63 #ifdef Q_WS_X11
|
jtkorhonen@0
|
64 app.setStyle(new QCleanlooksStyle);
|
jtkorhonen@0
|
65 #endif
|
jtkorhonen@0
|
66
|
jtkorhonen@0
|
67 #ifdef Q_WS_WIN
|
jtkorhonen@0
|
68 app.setStyle(new QWindowsXPStyle);
|
jtkorhonen@0
|
69 #endif
|
jtkorhonen@0
|
70
|
jtkorhonen@0
|
71 MainWindow mainWin;
|
jtkorhonen@0
|
72 mainWin.show();
|
jtkorhonen@0
|
73 return app.exec();
|
jtkorhonen@0
|
74 }
|