mirror of
https://github.com/tumic0/GPXSee.git
synced 2024-11-24 03:35:53 +01:00
29 lines
567 B
C++
29 lines
567 B
C++
#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);
|
|
#ifdef __APPLE__
|
|
app.setAttribute(Qt::AA_DontShowIconsInMenus);
|
|
#endif // __APPLE__
|
|
|
|
GUI gui;
|
|
gui.setWindowIcon(QIcon(QPixmap(APP_ICON)));
|
|
gui.show();
|
|
|
|
for (int i = 1; i < argc; i++)
|
|
gui.openFile(argv[i]);
|
|
|
|
return app.exec();
|
|
}
|