MCPcopy Create free account
hub / github.com/comaps/comaps / GetExternalPath

Function GetExternalPath

qt/build_style/build_common.cpp:93–112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91}
92
93QString GetExternalPath(QString const & name, QString const & primaryPath, QString const & secondaryPath)
94{
95 QString const resourceDir = GetPlatform().ResourcesDir().c_str();
96 QString path = JoinPathQt({resourceDir, primaryPath, name});
97 if (!QFileInfo::exists(path))
98 path = JoinPathQt({resourceDir, secondaryPath, name});
99
100 // Special case for looking for in application folder.
101 if (!QFileInfo::exists(path) && secondaryPath.isEmpty())
102 {
103 QString appPath = QCoreApplication::applicationDirPath();
104
105#if defined(OMIM_OS_MAC)
106 path = JoinPathQt({appPath, "..", "..", "..", name});
107#elif defined(OMIM_OS_LINUX)
108 path = JoinPathQt({appPath, name});
109#endif
110 }
111 return path;
112}
113
114QString GetProtobufEggPath()
115{

Callers 9

GetSkinGeneratorPathFunction · 0.85
RunBuildingPhonePackFunction · 0.85
GetStyleStatisticsFunction · 0.85
GetProtobufEggPathFunction · 0.85
RunCurrentStyleTestsFunction · 0.85
BuildDrawingRulesImplFunction · 0.85
GetGeometryToolPathFunction · 0.85

Calls 2

JoinPathQtFunction · 0.85
isEmptyMethod · 0.45

Tested by 1

RunCurrentStyleTestsFunction · 0.68