Forcing Q_SLOTS on non frameworks code

Aleix Pol aleixpol at kde.org
Sat Dec 14 15:17:12 UTC 2013


On Sat, Dec 14, 2013 at 3:58 PM, Albert Astals Cid <aacid at kde.org> wrote:

> El Dissabte, 14 de desembre de 2013, a les 14:30:14, Kevin Ottens va
> escriure:
> > On Saturday 14 December 2013 13:55:50 Albert Astals Cid wrote:
> > > Hi there, so here I am at the KF5 porting sprint at Barcelona trying to
> > > port libkdegames and I am realizing that I can not use code like
> > >
> > >   private slots:
> > > anymore.
> > >
> > > I understand that for frameworks libraries it is interesting to have
> > > -DQT_NO_SIGNALS_SLOTS_KEYWORDS defined so we end up with code that is
> as
> > > widely includable from anywhere, but forcing that to the rest of the
> world
> > > is a bit too much if you ask me.
> >
> > I don't think that was intended.
> >
> > > Can we somehow make it so that people using frameworks are not forced
> to
> > > add a remove_definitions so they get their code compiling?
> >
> > Definitely need to be fixed... we need to find what ends up activating it
> > for everyone. I would guess you get the same thing for the implicit ascii
> > casts? That would not be intended either.
>
> Yep, it's the same, I'll have a look to see where they come from.
>
> Cheers,
>   Albert
>
> >
> > Regards.
>
> _______________________________________________
> Kde-frameworks-devel mailing list
> Kde-frameworks-devel at kde.org
> https://mail.kde.org/mailman/listinfo/kde-frameworks-devel
>

We should have a KDEFrameworkCompilerSettings.cmake file in
extra-cmake-modules/kde-modules, that will have the settings we want for
frameworks exclusively, then we'll have to include it from all frameworks.

Aleix
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20131214/6b8aed0c/attachment.html>


More information about the Kde-frameworks-devel mailing list