pedrolcl / drumstick

Drumstick Qt/C++ MIDI libraries (Mirror)
https://sourceforge.net/projects/drumstick/
GNU General Public License v3.0
12 stars 3 forks source link

Support for projects using QT_NO_KEYWORDS #18

Closed pedrolcl closed 8 months ago

pedrolcl commented 9 months ago

https://doc.qt.io/qt-6/signalsandslots.html#signals-and-slots-in-qt-based-libraries

The public API of Qt-based libraries should use the macros Q_SIGNALS and Q_SLOTS instead of signals and slots. Otherwise it is hard to use such a library in a project that defines QT_NO_KEYWORDS.

To enforce this restriction, the library creator may set the preprocessor define QT_NO_SIGNALS_SLOTS_KEYWORDS when building the library.