Workaround moc parse errors on Fedora 33 and 34 builds

This commit is contained in:
Martchus 2021-09-15 18:04:47 +02:00
parent d83eb91df0
commit bec5b7bfd7
1 changed files with 2 additions and 0 deletions

View File

@ -10,7 +10,9 @@ namespace QtForkAwesome {
*/ */
enum class Icon : IconBaseType { enum class Icon : IconBaseType {
Invalid, /**< invalid, used by QtForkAwesome::iconFromId() to indicate failure */ Invalid, /**< invalid, used by QtForkAwesome::iconFromId() to indicate failure */
#ifndef Q_MOC_RUN // workaround moc parse errors on Fedora 33 and 34 builds
#include "private/icons.h" #include "private/icons.h"
#endif
}; };
} // namespace QtForkAwesome } // namespace QtForkAwesome