Forcing Q_SLOTS on non frameworks code

Albert Astals Cid aacid at kde.org
Sat Dec 14 12:55:50 UTC 2013


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.

Can we somehow make it so that people using frameworks are not forced to add a 
remove_definitions so they get their code compiling?

Thanks,
  Albert


More information about the Kde-frameworks-devel mailing list