Files
MapLibreParticleLab/platform/qt/app/main.cpp
Tadej Novak 1341f33ba4 Add ClientOptions to be able to pass around client name and version (#365)
* ClientOptions and Qt user agent

* Update CHANGELOG.md

Co-authored-by: Oliver Wipfli <oliver.wipfli@leichteralsluft.ch>

Co-authored-by: Oliver Wipfli <oliver.wipfli@leichteralsluft.ch>
2022-08-13 15:36:50 +02:00

27 lines
546 B
C++

#include "mapwindow.hpp"
#include <QApplication>
int main(int argc, char **argv)
{
QApplication app(argc, argv);
QMapLibreGL::Settings settings;
settings.setCacheDatabasePath("/tmp/mbgl-cache.db");
settings.setCacheDatabaseMaximumSize(20 * 1024 * 1024);
settings.setClientName("TestApp");
settings.setClientVersion("1.0");
MapWindow window(settings);
window.resize(800, 600);
window.show();
if (argc == 2 && QString("--test") == argv[1]) {
window.selfTest();
}
return app.exec();
}