Fix compilation with Qt 5.14
ClosedPublic

Authored by dfaure on Sep 26 2019, 9:18 AM.

Details

Summary

Use Q_NAMESPACE_EXPORT as recommended by the Qt 5.14 changelog,
the previous code was abusing the definition of Q_NAMESPACE.

cmake doesn't yet know that it should run moc on files that contain
Q_NAMESPACE_EXPORT, working on upstream patch

Test Plan

Builds

Diff Detail

Repository
R477 KGAPI Library
Branch
Applications/19.08
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 17043
Build 17061: arc lint + arc unit
dfaure created this revision.Sep 26 2019, 9:18 AM
Restricted Application added a project: KDE PIM. · View Herald TranscriptSep 26 2019, 9:18 AM
Restricted Application added a subscriber: kde-pim. · View Herald Transcript
dfaure requested review of this revision.Sep 26 2019, 9:18 AM
dvratil accepted this revision.Sep 26 2019, 10:16 AM
This revision is now accepted and ready to land.Sep 26 2019, 10:16 AM
dfaure closed this revision.Sep 26 2019, 2:26 PM

For the record, the upstream fix proposal is https://codereview.qt-project.org/c/qt/qtbase/+/275380 (Qt is actually a better place than cmake for this)