Warning: KPluginInfo::property("X-KDE-PluginInfo-Name") is deprecated

Marco Martin notmart at gmail.com
Sat Feb 21 10:02:48 GMT 2015


Hi all,
As you may have noticed, right now starting plasma is a big spam of
the following error:
Calling KPluginInfo::property("X-KDE-PluginInfo-Name") is deprecated,
use KPluginInfo::pluginName() in "/whatever/plugin.so" instead.

i tried to see where it happens, and seems it's in
ktradeparsetree.cpp , line 30
QVariant ParseContext::property(const QString &_key) const

I don't think this "properly" fixable, since from the stack trace it
seems an appropriate use.. i see two ways to fix it:

1) in ParseContext::property stuf a very long if.. else.. that makes
it call the proper KPluginInfo::correctAccessor() .. but is ugly and
slows it down

2) since this is an appropriate use, consider it not wrong anymore,
and just get rid of the warning.

Opinions? ideas?

--
Marco Martin




More information about the kde-core-devel mailing list