2015-10-05 01:43:48 +02:00
|
|
|
#include <QApplication>
|
|
|
|
#include <QTranslator>
|
|
|
|
#include <QLocale>
|
|
|
|
#include "gui.h"
|
|
|
|
#include "icons.h"
|
|
|
|
|
|
|
|
|
|
|
|
int main(int argc, char *argv[])
|
|
|
|
{
|
|
|
|
QApplication app(argc, argv);
|
|
|
|
|
|
|
|
QString locale = QLocale::system().name();
|
|
|
|
QTranslator translator;
|
|
|
|
translator.load(QString(":/lang/gpxsee_") + locale);
|
|
|
|
app.installTranslator(&translator);
|
2015-12-01 23:13:20 +01:00
|
|
|
#ifdef Q_OS_MAC
|
2015-10-06 00:48:43 +02:00
|
|
|
app.setAttribute(Qt::AA_DontShowIconsInMenus);
|
2015-12-01 23:13:20 +01:00
|
|
|
#endif // Q_OS_MAC
|
2015-10-05 01:43:48 +02:00
|
|
|
|
|
|
|
GUI gui;
|
|
|
|
gui.setWindowIcon(QIcon(QPixmap(APP_ICON)));
|
|
|
|
gui.show();
|
|
|
|
|
|
|
|
for (int i = 1; i < argc; i++)
|
|
|
|
gui.openFile(argv[i]);
|
|
|
|
|
|
|
|
return app.exec();
|
|
|
|
}
|