Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

qgeotiledmappingmanager: support Qt 5.5.x #16

Merged
merged 1 commit into from Sep 17, 2017

Conversation

neolit123
Copy link
Contributor

This patch adds small pre-processor branching to avoid some
Qt 5.6.0 introduced logic related to the tile cache.

Pre 5.6.0, the way to setup the tile cache is to use:

  • QGeoTileCache from qgeotilecache_p.h
  • createTileCacheWithDir() to allocate a cache object
  • QStandardPaths::writableLocation(QStandardPaths::GenericCacheLocation)
    instead of QAbstractGeoTileCache::baseCacheDirectory() to obtain
    the path to write the cache to

Tested-by: Stefan Fuchs sfuchs@gmx.de
Signed-off-by: Lubomir I. Ivanov neolit123@gmail.com

This patch adds small pre-processor branching to avoid some
Qt 5.6.0 introduced logic related to the tile cache.

Pre 5.6.0, the way to setup the tile cache is to use:
- QGeoTileCache from qgeotilecache_p.h
- createTileCacheWithDir() to allocate a cache object
- QStandardPaths::writableLocation(QStandardPaths::GenericCacheLocation)
instead of QAbstractGeoTileCache::baseCacheDirectory() to obtain
the path to write the cache to

Tested-by: Stefan Fuchs <sfuchs@gmx.de>
Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
@vladest vladest merged commit 1b857c0 into vladest:master Sep 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants