Replaced QGit icons
[qgit4/bulb.git] / src / qgit.cpp
blobcd19294501e3886977aa10cd9e14eefe9516655e
1 /*
2 Author: Marco Costalba (C) 2005-2007
4 Copyright: See COPYING file that comes with this distribution
6 */
7 #include <QSettings>
8 #include "common.h"
9 #include "mainimpl.h"
11 using namespace QGit;
13 int main(int argc, char* argv[]) {
15 QApplication app(argc, argv);
16 QCoreApplication::setOrganizationName(ORG_KEY);
17 QCoreApplication::setApplicationName(APP_KEY);
19 /* On Windows msysgit exec directory is set up
20 * during installation so to always find git.exe
21 * also if not in PATH
23 QSettings set;
24 GIT_DIR = set.value(GIT_DIR_KEY).toString();
26 initMimePix();
28 MainImpl* mainWin = new MainImpl;
29 mainWin->show();
30 QObject::connect(&app, SIGNAL(lastWindowClosed()), &app, SLOT(quit()));
31 bool ret = app.exec();
33 freeMimePix();
34 return ret;