blob: 851674b5a66ee21b0874e3b4f0b79f1af068a47b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#include "mapwindow.hpp"
#include <QApplication>
int main(int argc, char **argv)
{
QApplication app(argc, argv);
QMapboxGLSettings settings;
settings.setCacheDatabasePath("/tmp/mbgl-cache.db");
settings.setCacheDatabaseMaximumSize(20 * 1024 * 1024);
MapWindow window(settings);
window.resize(800, 600);
window.show();
if (argc == 2 && QString("--test") == argv[1]) {
window.selfTest();
}
return app.exec();
}
|