MCPcopy Create free account
hub / github.com/KDAB/GammaRay / rootPath

Function rootPath

common/paths.cpp:37–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35namespace Paths {
36
37QString rootPath()
38{
39 QMutexLocker locker(&s_pathData()->mutex);
40 if (s_pathData()->rootPath.isEmpty()) {
41 QFileInfo fi(SelfLocator::findMe());
42 fi.setFile(fi.absolutePath() + QLatin1String("/" GAMMARAY_INVERSE_LIB_DIR));
43 if (fi.isDir())
44 s_pathData()->rootPath = fi.absoluteFilePath();
45 }
46 Q_ASSERT(!s_pathData()->rootPath.isEmpty());
47 return s_pathData()->rootPath;
48}
49
50void setRootPath(const QString &rootPath)
51{

Callers 11

findProbeFunction · 0.85
LaunchPageMethod · 0.85
testRootPathMethod · 0.85
paths.hFile · 0.85
rootTranslationsPathFunction · 0.85
binPathFunction · 0.85
libexecPathFunction · 0.85
pluginPathsFunction · 0.85
targetPluginPathsFunction · 0.85
currentPluginsPathFunction · 0.85
documentationPathFunction · 0.85

Calls 2

isDirMethod · 0.80
isEmptyMethod · 0.45

Tested by 1

testRootPathMethod · 0.68