Ensure non-static icon engine plugin does not miss font of static qtforkawesome

This commit is contained in:
Martchus 2021-09-16 18:42:45 +02:00
parent cc1c8b35f8
commit cbcf98696f
1 changed files with 8 additions and 0 deletions

View File

@ -2,10 +2,18 @@
#include "../qtforkawesome/renderer.h"
#include "resources/qtconfig.h"
#include <QIcon>
#include <QIconEnginePlugin>
#include <QSize>
// ensure we don't miss the icon font when linking against qtforkawesome statically but don't build
// a static plugin
#ifndef QT_FORK_AWESOME_ICON_ENGINE_STATIC
ENABLE_QT_RESOURCES_OF_STATIC_DEPENDENCIES
#endif
namespace QtForkAwesome {
class QT_FORK_AWESOME_ICON_ENGINE_EXPORT ForkAwesomeIconEnginePlugin : public QIconEnginePlugin {