Mercurial > hg > easyhg
annotate main.cpp @ 31:552a49635124
Version 0.4.7. Small fix in mru list.
author | Jari Korhonen <jtkorhonen@gmail.com> |
---|---|
date | Mon, 14 Jun 2010 22:04:52 +0300 |
parents | 45bfb8dc1faf |
children | c32067cd19f8 |
rev | line source |
---|---|
jtkorhonen@0 | 1 /**************************************************************************** |
jtkorhonen@30 | 2 ** Copyright (C) Jari Korhonen, 2010 (under lgpl) |
jtkorhonen@0 | 3 ****************************************************************************/ |
jtkorhonen@0 | 4 |
jtkorhonen@0 | 5 #include <QApplication> |
jtkorhonen@0 | 6 |
jtkorhonen@0 | 7 #ifdef Q_WS_X11 |
jtkorhonen@0 | 8 #include <QCleanlooksStyle> |
jtkorhonen@0 | 9 #endif |
jtkorhonen@0 | 10 |
jtkorhonen@0 | 11 #ifdef Q_WS_WIN |
jtkorhonen@0 | 12 #include <QWindowsXPStyle> |
jtkorhonen@0 | 13 #endif |
jtkorhonen@0 | 14 |
jtkorhonen@0 | 15 #include "mainwindow.h" |
jtkorhonen@0 | 16 |
jtkorhonen@0 | 17 int main(int argc, char *argv[]) |
jtkorhonen@0 | 18 { |
jtkorhonen@0 | 19 Q_INIT_RESOURCE(hgexplorer); |
jtkorhonen@0 | 20 |
jtkorhonen@0 | 21 QApplication app(argc, argv); |
jtkorhonen@0 | 22 |
jtkorhonen@0 | 23 app.setApplicationName(APPNAME); |
jtkorhonen@0 | 24 |
jtkorhonen@0 | 25 #ifdef Q_WS_X11 |
jtkorhonen@0 | 26 app.setStyle(new QCleanlooksStyle); |
jtkorhonen@0 | 27 #endif |
jtkorhonen@0 | 28 |
jtkorhonen@0 | 29 #ifdef Q_WS_WIN |
jtkorhonen@0 | 30 app.setStyle(new QWindowsXPStyle); |
jtkorhonen@0 | 31 #endif |
jtkorhonen@0 | 32 |
jtkorhonen@0 | 33 MainWindow mainWin; |
jtkorhonen@0 | 34 mainWin.show(); |
jtkorhonen@0 | 35 return app.exec(); |
jtkorhonen@0 | 36 } |