File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -267,7 +267,11 @@ void ShellHeaderGenerator::write(QTextStream &s, const AbstractMetaClass *meta_c
267
267
QList<FlagsTypeEntry*> flags;
268
268
foreach (AbstractMetaEnum* enum1, enums1) {
269
269
// catch gadgets and enums that are not exported on QObjects...
270
- if ((enum1->wasProtected () || enum1->wasPublic ()) && (!meta_class->isQObject () || !enum1->hasQEnumsDeclaration ())) {
270
+ // since we don't parse Q_FLAG(S), we also need to generate for Q_ENUM which might
271
+ // have a missing Q_FLAG(S) declaration.
272
+ if ((enum1->wasProtected () || enum1->wasPublic ()) &&
273
+ (!meta_class->isQObject () || !enum1->hasQEnumsDeclaration () || enum1->typeEntry ()->flags ()))
274
+ {
271
275
enums << enum1;
272
276
if (enum1->typeEntry ()->flags ()) {
273
277
flags << enum1->typeEntry ()->flags ();
You can’t perform that action at this time.
0 commit comments