2015-05-13 07:49:49 -07:00
|
|
|
#include "mainwindow.h"
|
2019-03-21 19:24:03 -07:00
|
|
|
#include "translator.h"
|
2016-10-17 01:00:18 -07:00
|
|
|
#include <QCoreApplication>
|
2015-05-13 07:49:49 -07:00
|
|
|
#include <QApplication>
|
2016-10-17 01:00:18 -07:00
|
|
|
#include <QDebug>
|
2017-01-27 03:15:24 -08:00
|
|
|
#include <QCommandLineParser>
|
2017-03-02 22:02:15 -08:00
|
|
|
#include <QLibraryInfo>
|
2015-05-13 07:49:49 -07:00
|
|
|
|
|
|
|
int main(int argc, char *argv[])
|
|
|
|
{
|
|
|
|
QApplication a(argc, argv);
|
2019-03-28 20:34:17 -07:00
|
|
|
QApplication::setApplicationName("MinetestMapperGui");
|
2019-03-28 20:47:18 -07:00
|
|
|
#ifdef PORTABLE
|
|
|
|
QApplication::setApplicationDisplayName("Minetest Mapper GUI (Portable)");
|
|
|
|
#else
|
|
|
|
QApplication::setApplicationDisplayName("Minetest Mapper GUI");
|
|
|
|
#endif // PORTABLE
|
2019-03-28 20:34:17 -07:00
|
|
|
QApplication::setApplicationVersion(GIT_VERSION);
|
|
|
|
QApplication::setOrganizationName("MinetestMapperGui");
|
2016-10-17 01:00:18 -07:00
|
|
|
|
2017-03-02 22:02:15 -08:00
|
|
|
|
|
|
|
// Setup the translators
|
2019-03-21 19:24:03 -07:00
|
|
|
Translator t(QLocale::system());
|
2017-03-02 22:02:15 -08:00
|
|
|
|
2019-03-24 00:30:40 -07:00
|
|
|
MainWindow w(&t);
|
2015-05-13 07:49:49 -07:00
|
|
|
w.show();
|
|
|
|
|
2019-03-28 20:34:17 -07:00
|
|
|
return QApplication::exec();
|
2015-05-13 07:49:49 -07:00
|
|
|
}
|