Deprecate PluginLoader::listContainmentsForMimeType
It's unused and problematic since it uses KPluginInfo
This commit is contained in:
parent
047023d809
commit
56e7c54da2
@ -709,6 +709,7 @@ KPluginInfo::List PluginLoader::listContainmentsOfType(const QString &type, cons
|
||||
return KPluginInfo::fromMetaData(KPackage::PackageLoader::self()->findPackages(QStringLiteral("Plasma/Applet"), QString(), filter).toVector());
|
||||
}
|
||||
|
||||
#if PLASMA_BUILD_DEPRECATED_SINCE(5, 83)
|
||||
KPluginInfo::List PluginLoader::listContainmentsForMimeType(const QString &mimeType)
|
||||
{
|
||||
auto filter = [&mimeType](const KPluginMetaData &md) -> bool {
|
||||
@ -718,6 +719,7 @@ KPluginInfo::List PluginLoader::listContainmentsForMimeType(const QString &mimeT
|
||||
|
||||
return KPluginInfo::fromMetaData(KPackage::PackageLoader::self()->findPackages(QStringLiteral("Plasma/Applet"), QString(), filter).toVector());
|
||||
}
|
||||
#endif
|
||||
|
||||
QStringList PluginLoader::listContainmentTypes()
|
||||
{
|
||||
|
@ -323,12 +323,16 @@ public:
|
||||
*/
|
||||
static QStringList listContainmentTypes();
|
||||
|
||||
#if PLASMA_ENABLE_DEPRECATED_SINCE(5, 83)
|
||||
/**
|
||||
* Returns a list of all known containments associated with a certain MimeType
|
||||
*
|
||||
* @return list of containments
|
||||
* @deprecated since 5.83, use listAppletMetaData() with custom filtering instead.
|
||||
**/
|
||||
PLASMA_DEPRECATED_VERSION(5, 83, "Use listAppletMetaData() with custom filtering")
|
||||
static KPluginInfo::List listContainmentsForMimeType(const QString &mimeType);
|
||||
#endif
|
||||
|
||||
#if PLASMA_ENABLE_DEPRECATED_SINCE(5, 77)
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user