Absolute File Name: | /home/qt/qt5_coco/qt5/qtbase/src/gui/kernel/qplatforminputcontextfactory.cpp |
Switch to Source code | Preprocessed file |
Line | Source | Count | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | - | |||||||||||||
2 | - | |||||||||||||
3 | - | |||||||||||||
4 | - | |||||||||||||
5 | - | |||||||||||||
6 | - | |||||||||||||
7 | namespace { 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
never executed: }guard.store(QtGlobalStatic::Destroyed); never executed: }; static struct Holder : public HolderBase { Type value; Holder() noexcept(noexcept(Type ("org.qt-project.Qt.QPlatformInputContextFactoryInterface.5.1", QLatin1String("/platforminputcontexts"), Qt::CaseInsensitive))) : value ("org.qt-project.Qt.QPlatformInputContextFactoryInterface.5.1", QLatin1String("/platforminputcontexts"), Qt::CaseInsensitive) { guard.store(QtGlobalStatic::Initialized); } } holder; returnend of block never executed: &holder.value;return &holder.value; never executed: } } } static QGlobalStatic<QFactoryLoader, Q_QGS_loader::innerFunction, Q_QGS_loader::guard> loader;return &holder.value; | 0 | ||||||||||||
8 | - | |||||||||||||
9 | - | |||||||||||||
10 | - | |||||||||||||
11 | QStringList QPlatformInputContextFactory::keys() | - | ||||||||||||
12 | { | - | ||||||||||||
13 | - | |||||||||||||
14 | return never executed: loader()->keyMap().values();return loader()->keyMap().values(); never executed: return loader()->keyMap().values(); | 0 | ||||||||||||
15 | - | |||||||||||||
16 | - | |||||||||||||
17 | - | |||||||||||||
18 | } | - | ||||||||||||
19 | - | |||||||||||||
20 | QString QPlatformInputContextFactory::requested() | - | ||||||||||||
21 | { | - | ||||||||||||
22 | QByteArray env = qgetenv("QT_IM_MODULE"); | - | ||||||||||||
23 | return never executed: env.isNull() ? QString() : QString::fromLocal8Bit(env);return env.isNull() ? QString() : QString::fromLocal8Bit(env); never executed: return env.isNull() ? QString() : QString::fromLocal8Bit(env); | 0 | ||||||||||||
24 | } | - | ||||||||||||
25 | - | |||||||||||||
26 | QPlatformInputContext *QPlatformInputContextFactory::create(const QString& key) | - | ||||||||||||
27 | { | - | ||||||||||||
28 | - | |||||||||||||
29 | if (!key.isEmpty()
| 0 | ||||||||||||
30 | QStringList paramList = key.split(QLatin1Char(':')); | - | ||||||||||||
31 | const QString platform = paramList.takeFirst().toLower(); | - | ||||||||||||
32 | - | |||||||||||||
33 | QPlatformInputContext *ic = qLoadPlugin<QPlatformInputContext, QPlatformInputContextPlugin> | - | ||||||||||||
34 | (loader(), platform, paramList); | - | ||||||||||||
35 | if (ic
| 0 | ||||||||||||
36 | return never executed: ic;return ic; never executed: return ic; | 0 | ||||||||||||
37 | - | |||||||||||||
38 | delete ic; | - | ||||||||||||
39 | } never executed: end of block | 0 | ||||||||||||
40 | - | |||||||||||||
41 | return never executed: 0;return 0; never executed: return 0; | 0 | ||||||||||||
42 | } | - | ||||||||||||
43 | - | |||||||||||||
44 | QPlatformInputContext *QPlatformInputContextFactory::create() | - | ||||||||||||
45 | { | - | ||||||||||||
46 | return never executed: create(requested());return create(requested()); never executed: return create(requested()); | 0 | ||||||||||||
47 | } | - | ||||||||||||
48 | - | |||||||||||||
49 | - | |||||||||||||
Switch to Source code | Preprocessed file |