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

Sebastian Kügler sebas at kde.org
Sat Feb 21 10:15:10 UTC 2015


On Saturday, February 21, 2015 11:02:48 Marco Martin wrote:
> 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?

I've looked at it, too, since the warnings shown are just burying any useful 
information during the startup of Plasmashell. I think the warning is rather 
useless, and I'd just remove it, so 2).

Cheers,
-- 
sebas

Sebastian Kügler    |    http://vizZzion.org    |     http://kde.org


More information about the Kde-frameworks-devel mailing list