diff --git a/qtforkawesome/renderer.cpp b/qtforkawesome/renderer.cpp index babfa81..34743f9 100644 --- a/qtforkawesome/renderer.cpp +++ b/qtforkawesome/renderer.cpp @@ -189,6 +189,14 @@ void Renderer::addOverride(QChar character, const QIcon &override) m_d->overrides[character].setIcon(override); } +/*! + * \brief Clears all overrides added via addThemeOverride() or addOverride(). + */ +void Renderer::clearOverrides() +{ + m_d->overrides.clear(); +} + /*! * \brief Returns the global instance (which is so far only used by the icon engine plugin). */ diff --git a/qtforkawesome/renderer.h b/qtforkawesome/renderer.h index ee4e55e..1928dfc 100644 --- a/qtforkawesome/renderer.h +++ b/qtforkawesome/renderer.h @@ -37,6 +37,7 @@ public: void addThemeOverride(Icon icon, const QString &iconNameInTheme); void addOverride(QChar character, const QIcon &override); void addOverride(Icon icon, const QIcon &override); + void clearOverrides(); static Renderer &global();