Mapper  0.9.0
API documentation
Functions
OpenOrienteering::MapperResource Namespace Reference

Functions

void setSeachPaths ()
 Initializes QDir::searchPaths for Mapper resource prefixes. More...
 

Function Documentation

◆ setSeachPaths()

void OpenOrienteering::MapperResource::setSeachPaths ( )

Initializes QDir::searchPaths for Mapper resource prefixes.

This function registers the prefixes "data" and "doc" with paths leading to possible locations in the build dir (development build only), application bundle (Android, macOS, Windows), system (Linux) and Qt resource system. Thus resource lookup may either iterate explicitly over QDir::searchPaths("PREFIX"), or directly access resources using QFile("PREFIX:name").