kdecore: remove TODO related to KPluginLoader

the property shall not be removed

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2023-08-11 17:27:32 +03:00
parent 59b1d3da2d
commit fe00f4058f
2 changed files with 4 additions and 3 deletions

View file

@ -69,8 +69,9 @@ static QString findLibraryInternal(const QString &name, const KComponentData &cD
}
// If it is a absolute path just return it
if (!QDir::isRelativePath(libname))
if (!QDir::isRelativePath(libname)) {
return libname;
}
// Check for kde modules/plugins?
QString libfile = cData.dirs()->findResource("module", libname);
@ -168,8 +169,8 @@ KPluginFactory* KPluginLoader::factory()
kDebug() << "Expected a KPluginFactory, got a" << obj->metaObject()->className();
delete obj;
d->errorString = i18n("The library %1 does not offer a KDE 4 compatible factory.", d->name);
return nullptr;
}
return factory;
}

View file

@ -76,7 +76,7 @@ class KPluginLoaderPrivate;
class KDECORE_EXPORT KPluginLoader : public QPluginLoader
{
Q_OBJECT
Q_PROPERTY(QString pluginName READ pluginName) // KDE5: REMOVE?
Q_PROPERTY(QString pluginName READ pluginName)
public:
/**
* Used this constructor to load a plugin with a given library name. Plugin libraries shouldn't have a 'lib' prefix.