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.
This commit is contained in:
Martchus 2021-09-16 18:35:05 +02:00
parent 276033df9c
commit cc1c8b35f8
1 changed files with 2 additions and 2 deletions

View File

@ -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()) {