MCPcopy Create free account
hub / github.com/KDE/okular / detectConfigFileName

Function detectConfigFileName

part/part.cpp:275–288  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

273}
274
275static QString detectConfigFileName(const QVariantList &args)
276{
277 for (const QVariant &arg : args) {
278 if (arg.metaType().id() == QMetaType::QString) {
279 QString argString = arg.toString();
280 int separatorIndex = argString.indexOf(QStringLiteral("="));
281 if (separatorIndex >= 0 && argString.left(separatorIndex) == QLatin1String("ConfigFileName")) {
282 return argString.mid(separatorIndex + 1);
283 }
284 }
285 }
286
287 return QString();
288}
289
290#undef OKULAR_KEEP_FILE_OPEN
291

Callers 1

setupConfigSkeletonMethod · 0.85

Calls 3

toStringMethod · 0.80
QStringClass · 0.70
idMethod · 0.45

Tested by

no test coverage detected