source: subversion/applications/editors/merkaartor/Main.cpp @ 7096

Last change on this file since 7096 was 7096, checked in by bvh, 12 years ago

ADD : ability to load a track from the command line (by Daniel van Gerpen)
-> closes #743

  • Property svn:eol-style set to native
File size: 500 bytes
Line 
1#include <QtGui/QApplication>
2#include <QtGui/QMessageBox> 
3
4#include "MainWindow.h"
5
6int main(int argc, char** argv)
7{
8        QApplication app(argc,argv);
9
10        QCoreApplication::setOrganizationName("BartVanhauwaert");
11        QCoreApplication::setOrganizationDomain("www.irule.be");
12        QCoreApplication::setApplicationName("Merkaartor");
13
14        MainWindow Main;
15
16        const QStringList & params = QCoreApplication::arguments();
17        if (params.size() == 2)
18                Main.loadFile(params.at(1));
19       
20        Main.show();
21
22        return app.exec();
23}
24
25
Note: See TracBrowser for help on using the repository browser.