<br /><br /><br />> Message du 27/12/10 17:19<br />> De : "Andriy Rysin" <br />> A : kde-core-devel@kde.org<br />> Copie à : <br />> Objet : Need help with "This module still uses K_EXPORT_COMPONENT_FACTORY"<br />> <br />> I need some help with KCModuleLoader: when I try to load kcm_keyboard in <br />> 4.6 I get this warning<br />> <br />> $ kcmshell4 kcm_keyboard<br />> kcmshell(946)/kcontrol KCModuleLoader::loadModule: This module still <br />> uses K_EXPORT_COMPONENT_FACTORY. Please port it to use KPluginFactory <br />> and K_EXPORT_PLUGIN.<br />> <br />> so it fails to load the module if I compile kdebase with Mobile platform <br />> (as loader code which produces this warning is deprecated and not <br />> compiled for Mobile)<br />> <br />> I tried to compare kcm_keyboard to other modules (which don't have this <br />> problem) and it does not look much different:<br />> <br />> K_PLUGIN_FACTORY(KeyboardModuleFactory, registerPlugin();)<br />> K_EXPORT_PLUGIN(KeyboardModuleFactory("kcmkeyboard"))<br />> <br />> I'd appreciate any help on how to fix it right.<br />> <br />> Thanks,<br />> Andriy<br />> <br />Delete the following line in kcm_keyboard.desktop:<br />X-KDE-PluginKeyword=keyboard<br /><br />There seems to be a mismatch between this keyword and the K_* macros.<br />