* 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>
27 lines
546 B
C++
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();
|
|
}
|