Review Request 109531: Port the Sonnet ASpell plugin to the new style APIs

David Faure faure at kde.org
Sun Mar 17 12:04:53 GMT 2013



> On March 17, 2013, 11:51 a.m., David Faure wrote:
> > staging/sonnet/src/core/client_p.h, line 78
> > <http://git.reviewboard.kde.org/r/109531/diff/1/?file=120139#file120139line78>
> >
> >     Is this used anywhere? Funnily enough, the qobject_cast<Client *> in loadPlugin already compiles.
> >     Ah I see, that's because Client is a QObject, but it wouldn't need to be, with the interface stuff.
> 
> Martin Tobias Holmedahl Sandsmark wrote:
>     AFAIK it needs to be a QObject for QPluginLoader to load it?

The plugin itself needs to provide a QObject, but the base interface class doesn't have to be.
That's the whole purpose of Q_INTERFACES. As you saw, when the base class is a QObject, it works without it :)


- David


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/109531/#review29362
-----------------------------------------------------------


On March 17, 2013, noon, Martin Tobias Holmedahl Sandsmark wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://git.reviewboard.kde.org/r/109531/
> -----------------------------------------------------------
> 
> (Updated March 17, 2013, noon)
> 
> 
> Review request for KDE Frameworks and kdelibs.
> 
> 
> Description
> -------
> 
> Port the ASpell plugin to the new style of doing plugins in Qt5.
> 
> I'll do the rest of the plugins afterwards if this looks okay.
> 
> 
> Diffs
> -----
> 
>   staging/sonnet/src/core/client_p.h cd5c0f2 
>   staging/sonnet/src/plugins/aspell/kspell_aspellclient.h 95173ff 
>   staging/sonnet/src/plugins/aspell/kspell_aspellclient.cpp b649d0d 
> 
> Diff: http://git.reviewboard.kde.org/r/109531/diff/
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> Martin Tobias Holmedahl Sandsmark
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20130317/25d73940/attachment.htm>


More information about the kde-core-devel mailing list