qplatformthemefactory.cpp

Absolute File Name:/home/qt/qt5_coco/qt5/qtbase/src/gui/kernel/qplatformthemefactory.cpp
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4-
5-
6namespace { namespace Q_QGS_loader { typedef QFactoryLoader Type; QBasicAtomicInt guard = { QtGlobalStatic::Uninitialized }; __attribute__((visibility("hidden"))) inline Type *innerFunction() { struct HolderBase { ~HolderBase() noexcept { if (guard.load() == QtGlobalStatic::Initialized
guard.load() =...c::InitializedDescription
TRUEnever evaluated
FALSEnever evaluated
) guard.store(QtGlobalStatic::Destroyed);
never executed: guard.store(QtGlobalStatic::Destroyed);
}
never executed: end of block
}; static struct Holder : public HolderBase { Type value; Holder() noexcept(noexcept(Type ("org.qt-project.Qt.QPA.QPlatformThemeFactoryInterface.5.1", QLatin1String("/platformthemes"), Qt::CaseInsensitive))) : value ("org.qt-project.Qt.QPA.QPlatformThemeFactoryInterface.5.1", QLatin1String("/platformthemes"), Qt::CaseInsensitive) { guard.store(QtGlobalStatic::Initialized); } } holder; return
never executed: return &holder.value;
&holder.value;
never executed: return &holder.value;
} } } static QGlobalStatic<QFactoryLoader, Q_QGS_loader::innerFunction, Q_QGS_loader::guard> loader;
0
7-
8namespace { namespace Q_QGS_directLoader { typedef QFactoryLoader Type; QBasicAtomicInt guard = { QtGlobalStatic::Uninitialized }; __attribute__((visibility("hidden"))) inline Type *innerFunction() { struct HolderBase { ~HolderBase() noexcept { if (guard.load() == QtGlobalStatic::Initialized
guard.load() =...c::InitializedDescription
TRUEnever evaluated
FALSEnever evaluated
) guard.store(QtGlobalStatic::Destroyed);
never executed: guard.store(QtGlobalStatic::Destroyed);
}
never executed: end of block
}; static struct Holder : public HolderBase { Type value; Holder() noexcept(noexcept(Type ("org.qt-project.Qt.QPA.QPlatformThemeFactoryInterface.5.1", QLatin1String(""), Qt::CaseInsensitive))) : value ("org.qt-project.Qt.QPA.QPlatformThemeFactoryInterface.5.1", QLatin1String(""), Qt::CaseInsensitive) { guard.store(QtGlobalStatic::Initialized); } } holder; return
never executed: return &holder.value;
&holder.value;
never executed: return &holder.value;
} } } static QGlobalStatic<QFactoryLoader, Q_QGS_directLoader::innerFunction, Q_QGS_directLoader::guard> directLoader;
0
9-
10-
11-
12QPlatformTheme *QPlatformThemeFactory::create(const QString& key, const QString &platformPluginPath)-
13{-
14 QStringList paramList = key.split(QLatin1Char(':'));-
15 const QString platform = paramList.takeFirst().toLower();-
16-
17-
18-
19 if (!platformPluginPath.isEmpty()
!platformPluginPath.isEmpty()Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
20 QCoreApplication::addLibraryPath(platformPluginPath);-
21 if (QPlatformTheme *ret = qLoadPlugin1<QPlatformTheme, QPlatformThemePlugin>(directLoader(), platform, paramList)
QPlatformTheme...rm, paramList)Description
TRUEnever evaluated
FALSEnever evaluated
)
0
22 return
never executed: return ret;
ret;
never executed: return ret;
0
23 }
never executed: end of block
0
24 if (QPlatformTheme *ret = qLoadPlugin1<QPlatformTheme, QPlatformThemePlugin>(loader(), platform, paramList)
QPlatformTheme...rm, paramList)Description
TRUEnever evaluated
FALSEnever evaluated
)
0
25 return
never executed: return ret;
ret;
never executed: return ret;
0
26-
27-
28-
29-
30 return
never executed: return 0;
0;
never executed: return 0;
0
31}-
32-
33-
34-
35-
36-
37-
38-
39QStringList QPlatformThemeFactory::keys(const QString &platformPluginPath)-
40{-
41-
42 QStringList list;-
43-
44 if (!platformPluginPath.isEmpty()
!platformPluginPath.isEmpty()Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
45 QCoreApplication::addLibraryPath(platformPluginPath);-
46 list += directLoader()->keyMap().values();-
47 if (!list.isEmpty()
!list.isEmpty()Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
48 const QString postFix = ([]() -> QString { enum { Size = sizeof(u"" " (from ")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" " (from " }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return
never executed: return qstring_literal_temp;
qstring_literal_temp;
never executed: return qstring_literal_temp;
}())
0
49 + QDir::toNativeSeparators(platformPluginPath)-
50 + QLatin1Char(')');-
51 const QStringList::iterator end = list.end();-
52 for (QStringList::iterator it = list.begin(); it != end
it != endDescription
TRUEnever evaluated
FALSEnever evaluated
; ++it)
0
53 (*
never executed: (*it).append(postFix);
it).append(postFix);
never executed: (*it).append(postFix);
0
54 }
never executed: end of block
0
55 }
never executed: end of block
0
56 list += loader()->keyMap().values();-
57 return
never executed: return list;
list;
never executed: return list;
0
58-
59-
60-
61-
62}-
63-
64-
Switch to Source codePreprocessed file

Generated by Squish Coco Non-Commercial 4.3.0-BETA-master-30-08-2018-4cb69e9