33 for (
const QDir &basePath : qgis::as_const( mPaths ) )
34 if ( basePath.exists( relativePath ) )
35 return basePath.absoluteFilePath( relativePath );
44 for (
const QDir &basePath : qgis::as_const( mPaths ) )
45 if ( fullPath.startsWith( basePath.absolutePath() ) )
46 return basePath.relativeFilePath( fullPath );
57 for (
const QDir &dir : mPaths )
58 paths << dir.absolutePath();
67 for (
const QString &path :
paths )
70 if ( !mPaths.contains( dir ) )
83 if ( mPaths.contains( dir ) )
88 if ( position >= 0 && position < mPaths.count() )
89 mPaths.insert( position, dir );
101 mPaths.removeAll( QDir( path ) );
106 void QgsLocalizedDataPathRegistry::readFromSettings()
108 setPaths(
QgsSettings().value( QStringLiteral(
"/qgis/localized_data_paths" ) ).toStringList() );
111 void QgsLocalizedDataPathRegistry::writeToSettings()