From cc1c8b35f8f414c7abb6e20bcd6bcf90a83f2fff Mon Sep 17 00:00:00 2001 From: Martchus Date: Thu, 16 Sep 2021 18:35:05 +0200 Subject: [PATCH] Rename the class for the icon engine plugin so it is less likely to cause name conflicts There might be some global objects created just based on the class name without the namespace. --- iconengineplugin/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/iconengineplugin/main.cpp b/iconengineplugin/main.cpp index 4d3baa9..28d049d 100644 --- a/iconengineplugin/main.cpp +++ b/iconengineplugin/main.cpp @@ -8,7 +8,7 @@ namespace QtForkAwesome { -class QT_FORK_AWESOME_ICON_ENGINE_EXPORT IconEnginePlugin : public QIconEnginePlugin { +class QT_FORK_AWESOME_ICON_ENGINE_EXPORT ForkAwesomeIconEnginePlugin : public QIconEnginePlugin { Q_OBJECT Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QIconEngineFactoryInterface" FILE "qtforkawesomeiconengine.json") @@ -19,7 +19,7 @@ private: Renderer m_renderer; }; -QIconEngine *IconEnginePlugin::create(const QString &file) +QIconEngine *ForkAwesomeIconEnginePlugin::create(const QString &file) { auto *const engine = new IconEngine(m_renderer); if (!file.isNull()) {