qplatforminputcontextfactory.cpp

Absolute File Name:/home/qt/qt5_coco/qt5/qtbase/src/gui/kernel/qplatforminputcontextfactory.cpp
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4-
5-
6-
7namespace { 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.QPlatformInputContextFactoryInterface.5.1", QLatin1String("/platforminputcontexts"), Qt::CaseInsensitive))) : value ("org.qt-project.Qt.QPlatformInputContextFactoryInterface.5.1", QLatin1String("/platforminputcontexts"), 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
8-
9-
10-
11QStringList QPlatformInputContextFactory::keys()-
12{-
13-
14 return
never executed: return loader()->keyMap().values();
loader()->keyMap().values();
never executed: return loader()->keyMap().values();
0
15-
16-
17-
18}-
19-
20QString QPlatformInputContextFactory::requested()-
21{-
22 QByteArray env = qgetenv("QT_IM_MODULE");-
23 return
never executed: return env.isNull() ? QString() : QString::fromLocal8Bit(env);
env.isNull() ? QString() : QString::fromLocal8Bit(env);
never executed: return env.isNull() ? QString() : QString::fromLocal8Bit(env);
0
24}-
25-
26QPlatformInputContext *QPlatformInputContextFactory::create(const QString& key)-
27{-
28-
29 if (!key.isEmpty()
!key.isEmpty()Description
TRUEnever evaluated
FALSEnever evaluated
) {
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
icDescription
TRUEnever evaluated
FALSEnever evaluated
&& ic->isValid()
ic->isValid()Description
TRUEnever evaluated
FALSEnever evaluated
)
0
36 return
never executed: return ic;
ic;
never executed: return ic;
0
37-
38 delete ic;-
39 }
never executed: end of block
0
40-
41 return
never executed: return 0;
0;
never executed: return 0;
0
42}-
43-
44QPlatformInputContext *QPlatformInputContextFactory::create()-
45{-
46 return
never executed: return create(requested());
create(requested());
never executed: return create(requested());
0
47}-
48-
49-
Switch to Source codePreprocessed file

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