diff --git a/src/kicontheme.h b/src/kicontheme.h --- a/src/kicontheme.h +++ b/src/kicontheme.h @@ -288,7 +288,8 @@ * * @deprecated since 5.64, no longer necessary, Qt assigns icon itself by now. */ - KICONTHEMES_DEPRECATED_VERSION(5, 64, "No longer necessary") static void assignIconsToContextMenu(ContextMenus type, QList actions); // TODO KF6 remove + KICONTHEMES_DEPRECATED_VERSION(5, 64, "No longer necessary") + static void assignIconsToContextMenu(ContextMenus type, QList actions); // TODO KF6 remove #endif private: diff --git a/src/kicontheme.cpp b/src/kicontheme.cpp --- a/src/kicontheme.cpp +++ b/src/kicontheme.cpp @@ -677,6 +677,7 @@ return QStringLiteral("hicolor"); } +#if KICONTHEMES_BUILD_DEPRECATED_SINCE(5, 64) void KIconTheme::assignIconsToContextMenu(ContextMenus type, QList actions) { @@ -710,6 +711,7 @@ break; } } +#endif /*** KIconThemeDir ***/