Work around Qt MOC issue with IdString enums

Signed-off-by: David Shah <dave@ds0.me>
This commit is contained in:
David Shah 2019-12-27 10:32:23 +00:00
parent cea27dc84a
commit b6e2159cec
2 changed files with 8 additions and 0 deletions

View File

@ -52,6 +52,9 @@ struct DelayInfo
// -----------------------------------------------------------------------
// https://bugreports.qt.io/browse/QTBUG-80789
#ifndef Q_MOC_RUN
enum ConstIds
{
ID_NONE
@ -65,6 +68,7 @@ enum ConstIds
#define X(t) static constexpr auto id_##t = IdString(ID_##t);
#include "constids.inc"
#undef X
#endif
NPNR_PACKED_STRUCT(struct LocationPOD { int16_t x, y; });

View File

@ -48,6 +48,9 @@ struct DelayInfo
// -----------------------------------------------------------------------
// https://bugreports.qt.io/browse/QTBUG-80789
#ifndef Q_MOC_RUN
enum ConstIds
{
ID_NONE
@ -59,6 +62,7 @@ enum ConstIds
#define X(t) static constexpr auto id_##t = IdString(ID_##t);
#include "constids.inc"
#undef X
#endif
struct BelId
{