Changeset View
Changeset View
Standalone View
Standalone View
mobile/components/okularsingleton.cpp
Show All 23 Lines | |||||
24 | 24 | | |||
25 | OkularSingleton::OkularSingleton() | 25 | OkularSingleton::OkularSingleton() | ||
26 | {} | 26 | {} | ||
27 | 27 | | |||
28 | QStringList OkularSingleton::nameFilters() const | 28 | QStringList OkularSingleton::nameFilters() const | ||
29 | { | 29 | { | ||
30 | QStringList supportedPatterns; | 30 | QStringList supportedPatterns; | ||
31 | 31 | | |||
32 | QString constraint( QStringLiteral("(Library == 'okularpart')") ); | 32 | QString constraint( QStringLiteral("(Library == 'kf5/parts/okularpart')") ); | ||
33 | QLatin1String basePartService( "KParts/ReadOnlyPart" ); | 33 | QLatin1String basePartService( "KParts/ReadOnlyPart" ); | ||
34 | KService::List offers = KServiceTypeTrader::self()->query( basePartService, constraint ); | 34 | KService::List offers = KServiceTypeTrader::self()->query( basePartService, constraint ); | ||
35 | KService::List::ConstIterator it = offers.constBegin(), itEnd = offers.constEnd(); | 35 | KService::List::ConstIterator it = offers.constBegin(), itEnd = offers.constEnd(); | ||
36 | 36 | | |||
37 | QMimeDatabase md; | 37 | QMimeDatabase md; | ||
38 | for ( ; it != itEnd; ++it ) | 38 | for ( ; it != itEnd; ++it ) | ||
39 | { | 39 | { | ||
40 | KService::Ptr service = *it; | 40 | KService::Ptr service = *it; | ||
Show All 10 Lines |