Mercurial > hg > easyhg
view main.cpp @ 41:94bbc4b30b2a
Handle filenames starting with "-"
Such filenames are mistaken for command line options, unless we tell
Mercurial to stop processing command line options with the special
"--" option.
author | Martin Geisler <mg@aragost.com> |
---|---|
date | Thu, 24 Jun 2010 11:38:50 +0200 |
parents | 45bfb8dc1faf |
children | c32067cd19f8 |
line wrap: on
line source
/**************************************************************************** ** Copyright (C) Jari Korhonen, 2010 (under lgpl) ****************************************************************************/ #include <QApplication> #ifdef Q_WS_X11 #include <QCleanlooksStyle> #endif #ifdef Q_WS_WIN #include <QWindowsXPStyle> #endif #include "mainwindow.h" int main(int argc, char *argv[]) { Q_INIT_RESOURCE(hgexplorer); QApplication app(argc, argv); app.setApplicationName(APPNAME); #ifdef Q_WS_X11 app.setStyle(new QCleanlooksStyle); #endif #ifdef Q_WS_WIN app.setStyle(new QWindowsXPStyle); #endif MainWindow mainWin; mainWin.show(); return app.exec(); }