Mercurial > hg > easyhg
annotate main.cpp @ 60:73073f34a5ee
* win32 build fixes
author | Chris Cannam |
---|---|
date | Tue, 16 Nov 2010 19:53:14 +0000 |
parents | f583e44d9d31 |
children | bf57a16315bd |
rev | line source |
---|---|
Chris@57 | 1 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */ |
Chris@57 | 2 |
Chris@57 | 3 /* |
Chris@57 | 4 EasyMercurial |
Chris@57 | 5 |
Chris@57 | 6 Based on HgExplorer by Jari Korhonen |
Chris@57 | 7 Copyright (c) 2010 Jari Korhonen |
Chris@57 | 8 Copyright (c) 2010 Chris Cannam |
Chris@57 | 9 Copyright (c) 2010 Queen Mary, University of London |
Chris@57 | 10 |
Chris@57 | 11 This program is free software; you can redistribute it and/or |
Chris@57 | 12 modify it under the terms of the GNU General Public License as |
Chris@57 | 13 published by the Free Software Foundation; either version 2 of the |
Chris@57 | 14 License, or (at your option) any later version. See the file |
Chris@57 | 15 COPYING included with this distribution for more information. |
Chris@57 | 16 */ |
jtkorhonen@0 | 17 |
jtkorhonen@0 | 18 #include <QApplication> |
jtkorhonen@0 | 19 |
jtkorhonen@0 | 20 #ifdef Q_WS_X11 |
jtkorhonen@0 | 21 #include <QCleanlooksStyle> |
jtkorhonen@0 | 22 #endif |
jtkorhonen@0 | 23 |
jtkorhonen@0 | 24 #ifdef Q_WS_WIN |
jtkorhonen@0 | 25 #include <QWindowsXPStyle> |
jtkorhonen@0 | 26 #endif |
jtkorhonen@0 | 27 |
jtkorhonen@0 | 28 #include "mainwindow.h" |
jtkorhonen@0 | 29 |
jtkorhonen@0 | 30 int main(int argc, char *argv[]) |
jtkorhonen@0 | 31 { |
jtkorhonen@0 | 32 Q_INIT_RESOURCE(hgexplorer); |
jtkorhonen@0 | 33 |
jtkorhonen@0 | 34 QApplication app(argc, argv); |
jtkorhonen@0 | 35 |
jtkorhonen@0 | 36 app.setApplicationName(APPNAME); |
Chris@50 | 37 /*!!! |
jtkorhonen@0 | 38 #ifdef Q_WS_X11 |
jtkorhonen@0 | 39 app.setStyle(new QCleanlooksStyle); |
jtkorhonen@0 | 40 #endif |
jtkorhonen@0 | 41 |
jtkorhonen@0 | 42 #ifdef Q_WS_WIN |
jtkorhonen@0 | 43 app.setStyle(new QWindowsXPStyle); |
jtkorhonen@0 | 44 #endif |
Chris@43 | 45 */ |
jtkorhonen@0 | 46 MainWindow mainWin; |
jtkorhonen@0 | 47 mainWin.show(); |
jtkorhonen@0 | 48 return app.exec(); |
jtkorhonen@0 | 49 } |