KPluginLoader: move static methods to KPluginMetaData
Open, Needs TriagePublic

Description

i.e. copy and deprecate the old ones.

At least findPlugin, findPlugins, findPluginsById, forEachPlugin.

We can probably deprecate instantiatePlugins in favour of findPlugins once Nicolas Fella's convenience method lands.

dfaure created this task.Mar 28 2021, 9:11 AM
dfaure added a parent task: T13952: KPluginLoader.
alex claimed this task.Jun 5 2021, 3:15 PM
alex added a comment.Jun 7 2021, 2:19 PM

With the mentioned Qt-Bug fixed and the static methods moved we could deprecate the class at all.

See https://codereview.qt-project.org/c/qt/qtbase/+/285020

We can probably deprecate instantiatePlugins in favour of findPlugins once Nicolas Fella's convenience method lands.

Agreed, but those methods do not use KPluginFactory, which makes the utility method not a drop-in replacement.

@alex I believe this is done?