Moving KPart args from QStringList to QVariantList

Thomas Zander zander at kde.org
Sat Mar 3 08:29:42 GMT 2007


On Friday 02 March 2007 20:33, Matt Broadstone wrote:
>   In plasma we've run into a situation where we'd like to cache the
> KService::Ptr for a given applet in the applet itself, and it seems
> the only way to do this is to pass it along to the applet factory by
> means of args, however args is a QStringList.
>   I was wondering if anyone would be averse to me switching this
> QStringList to a QVariantList so we can pass the ptr in - the change
> should be more or less transparent for current code. The change
> probably qualifies for a bc monday commit so if I get the go ahead I'd
> like to commit the change this monday.

How does that affect classes like koffice' plugin loaders [1]?
which currently does;

QObject * plugin = KService::createInstance<QObject>(service, this, 
QStringList(), &errCode );


1) koffice/libs/kofficecore/KoPluginLoader.h
-- 
Thomas Zander
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20070303/c8755007/attachment.sig>


More information about the kde-core-devel mailing list