Logo Search packages:      
Sourcecode: qmk-groundstation version File versions  Download package

void qmapcontrol::MapControl::enablePersistentCache ( const QDir &  path = QDir::homePath() + "/QMapControl.cache"  ) 

Enable persistent caching of map tiles.

Call this method to allow the QMapControl widget to save map tiles persistent (also over application restarts). Tiles are stored in the subdirectory "QMapControl.cache" within the user's home directory. This can be changed by giving a path.

Parameters:
path the path to the cache directory

Definition at line 391 of file mapcontrol.cpp.

    {
        ImageManager::instance()->setCacheDir(path);
    }


Generated by  Doxygen 1.6.0   Back to index