Compare commits
No commits in common. "e3aa98a93dc6d9077c0dee870701483b940bf2de" and "3b43e28b0394e0f6ed930e40d97075f3b816b245" have entirely different histories.
e3aa98a93d
...
3b43e28b03
Before Width: | Height: | Size: 208 B After Width: | Height: | Size: 6.5 KiB |
Before Width: | Height: | Size: 231 B After Width: | Height: | Size: 8.5 KiB |
Before Width: | Height: | Size: 411 B After Width: | Height: | Size: 578 B |
Before Width: | Height: | Size: 214 B After Width: | Height: | Size: 7.3 KiB |
Before Width: | Height: | Size: 192 B After Width: | Height: | Size: 7.0 KiB |
Before Width: | Height: | Size: 224 B After Width: | Height: | Size: 6.9 KiB |
Before Width: | Height: | Size: 610 B After Width: | Height: | Size: 8.0 KiB |
Before Width: | Height: | Size: 501 B After Width: | Height: | Size: 7.1 KiB |
Before Width: | Height: | Size: 310 B After Width: | Height: | Size: 9.7 KiB |
Before Width: | Height: | Size: 268 B After Width: | Height: | Size: 8.5 KiB |
Before Width: | Height: | Size: 222 B After Width: | Height: | Size: 9.4 KiB |
Before Width: | Height: | Size: 220 B After Width: | Height: | Size: 8.7 KiB |
Before Width: | Height: | Size: 162 B After Width: | Height: | Size: 6.4 KiB |
Before Width: | Height: | Size: 218 B After Width: | Height: | Size: 218 B |
Before Width: | Height: | Size: 255 B After Width: | Height: | Size: 7.9 KiB |
Before Width: | Height: | Size: 247 B After Width: | Height: | Size: 478 B |
Before Width: | Height: | Size: 311 B After Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 284 B After Width: | Height: | Size: 5.0 KiB |
Before Width: | Height: | Size: 220 B After Width: | Height: | Size: 7.9 KiB |
@ -56,6 +56,7 @@ App::App(int &argc, char **argv) : QApplication(argc, argv)
|
||||
"QThreadStorage: Thread X exited after QThreadStorage Y destroyed" */
|
||||
Downloader::setNetworkManager(new QNetworkAccessManager(this));
|
||||
DEM::setDir(ProgramPaths::demDir());
|
||||
DEM::setCacheSize(536870912/*512MB*/);
|
||||
QSurfaceFormat fmt;
|
||||
fmt.setStencilBufferSize(8);
|
||||
fmt.setSamples(4);
|
||||
|
@ -2416,7 +2416,6 @@ void GUI::writeSettings()
|
||||
WRITE(useOpenGL, _options.useOpenGL);
|
||||
WRITE(enableHTTP2, _options.enableHTTP2);
|
||||
WRITE(pixmapCache, _options.pixmapCache);
|
||||
WRITE(demCache, _options.demCache);
|
||||
WRITE(connectionTimeout, _options.connectionTimeout);
|
||||
WRITE(hiresPrint, _options.hiresPrint);
|
||||
WRITE(printName, _options.printName);
|
||||
@ -2698,7 +2697,6 @@ void GUI::readSettings(QString &activeMap, QStringList &disabledPOIs)
|
||||
_options.useOpenGL = READ(useOpenGL).toBool();
|
||||
_options.enableHTTP2 = READ(enableHTTP2).toBool();
|
||||
_options.pixmapCache = READ(pixmapCache).toInt();
|
||||
_options.demCache = READ(demCache).toInt();
|
||||
_options.connectionTimeout = READ(connectionTimeout).toInt();
|
||||
_options.hiresPrint = READ(hiresPrint).toBool();
|
||||
_options.printName = READ(printName).toBool();
|
||||
@ -2786,7 +2784,6 @@ void GUI::loadOptions()
|
||||
Downloader::setTimeout(_options.connectionTimeout);
|
||||
|
||||
QPixmapCache::setCacheLimit(_options.pixmapCache * 1024);
|
||||
DEM::setCacheSize(_options.demCache * 1024);
|
||||
|
||||
_poi->setRadius(_options.poiRadius);
|
||||
|
||||
@ -2912,8 +2909,6 @@ void GUI::updateOptions(const Options &options)
|
||||
|
||||
if (options.pixmapCache != _options.pixmapCache)
|
||||
QPixmapCache::setCacheLimit(options.pixmapCache * 1024);
|
||||
if (options.demCache != _options.demCache)
|
||||
DEM::setCacheSize(options.demCache * 1024);
|
||||
|
||||
if (options.connectionTimeout != _options.connectionTimeout)
|
||||
Downloader::setTimeout(options.connectionTimeout);
|
||||
|
@ -723,12 +723,6 @@ QWidget *OptionsDialog::createSystemPage()
|
||||
_pixmapCache->setSuffix(UNIT_SPACE + tr("MB"));
|
||||
_pixmapCache->setValue(_options.pixmapCache);
|
||||
|
||||
_demCache = new QSpinBox();
|
||||
_demCache->setMinimum(64);
|
||||
_demCache->setMaximum(2048);
|
||||
_demCache->setSuffix(UNIT_SPACE + tr("MB"));
|
||||
_demCache->setValue(_options.demCache);
|
||||
|
||||
_connectionTimeout = new QSpinBox();
|
||||
_connectionTimeout->setMinimum(30);
|
||||
_connectionTimeout->setMaximum(120);
|
||||
@ -746,7 +740,6 @@ QWidget *OptionsDialog::createSystemPage()
|
||||
#else // Q_OS_MAC
|
||||
QFormLayout *formLayout = new QFormLayout();
|
||||
formLayout->addRow(tr("Image cache size:"), _pixmapCache);
|
||||
formLayout->addRow(tr("DEM cache size:"), _demCache);
|
||||
formLayout->addRow(tr("Connection timeout:"), _connectionTimeout);
|
||||
QFormLayout *checkboxLayout = new QFormLayout();
|
||||
checkboxLayout->addWidget(_enableHTTP2);
|
||||
@ -939,7 +932,6 @@ void OptionsDialog::accept()
|
||||
_options.useOpenGL = _useOpenGL->isChecked();
|
||||
_options.enableHTTP2 = _enableHTTP2->isChecked();
|
||||
_options.pixmapCache = _pixmapCache->value();
|
||||
_options.demCache = _demCache->value();
|
||||
_options.connectionTimeout = _connectionTimeout->value();
|
||||
_options.dataPath = _dataPath->dir();
|
||||
_options.mapsPath = _mapsPath->dir();
|
||||
|
@ -79,7 +79,6 @@ struct Options {
|
||||
bool useOpenGL;
|
||||
bool enableHTTP2;
|
||||
int pixmapCache;
|
||||
int demCache;
|
||||
int connectionTimeout;
|
||||
QString dataPath;
|
||||
QString mapsPath;
|
||||
@ -183,7 +182,6 @@ private:
|
||||
#endif // QT 5.14
|
||||
// System
|
||||
QSpinBox *_pixmapCache;
|
||||
QSpinBox *_demCache;
|
||||
QSpinBox *_connectionTimeout;
|
||||
QCheckBox *_useOpenGL;
|
||||
QCheckBox *_enableHTTP2;
|
||||
|
@ -34,10 +34,8 @@
|
||||
|
||||
#ifdef Q_OS_ANDROID
|
||||
#define PIXMAP_CACHE 256
|
||||
#define DEM_CACHE 128
|
||||
#else // Q_OS_ANDROID
|
||||
#define PIXMAP_CACHE 512
|
||||
#define DEM_CACHE 256
|
||||
#endif // Q_OS_ANDROID
|
||||
|
||||
|
||||
@ -245,7 +243,6 @@ SETTING(demPassword, "demPassword", "" );
|
||||
SETTING(useOpenGL, "useOpenGL", false );
|
||||
SETTING(enableHTTP2, "enableHTTP2", true );
|
||||
SETTING(pixmapCache, "pixmapCache", PIXMAP_CACHE );
|
||||
SETTING(demCache, "demCache", DEM_CACHE );
|
||||
SETTING(connectionTimeout, "connectionTimeout", 30 );
|
||||
SETTING(hiresPrint, "hiresPrint", false );
|
||||
SETTING(printName, "printName", true );
|
||||
|
@ -189,7 +189,6 @@ public:
|
||||
static const Setting useOpenGL;
|
||||
static const Setting enableHTTP2;
|
||||
static const Setting pixmapCache;
|
||||
static const Setting demCache;
|
||||
static const Setting connectionTimeout;
|
||||
static const Setting hiresPrint;
|
||||
static const Setting printName;
|
||||
|