diff --git a/src/kiconloader.h b/src/kiconloader.h --- a/src/kiconloader.h +++ b/src/kiconloader.h @@ -589,8 +589,11 @@ /** * \relates KIconLoader * Load a desktop icon. + * @deprecated since 5.63. Prefer QIcon::fromTheme instead where possible, + * if you need a pixmap use QIcon::pixmap with KIconLoader::StdSizes, + * if you need the overlay, use KIconLoader::loadIcon. */ -KICONTHEMES_EXPORT QPixmap DesktopIcon(const QString &name, int size = 0, +KICONTHEMES_DEPRECATED_EXPORT QPixmap DesktopIcon(const QString &name, int size = 0, int state = KIconLoader::DefaultState, const QStringList &overlays = QStringList()); /** @@ -605,8 +608,11 @@ /** * \relates KIconLoader * Load a toolbar icon. + * @deprecated since 5.63. Prefer QIcon::fromTheme instead where possible, + * if you need a pixmap use QIcon::pixmap with KIconLoader::StdSizes, + * if you need the overlay, use KIconLoader::loadIcon. */ -KICONTHEMES_EXPORT QPixmap BarIcon(const QString &name, int size = 0, int state = KIconLoader::DefaultState, +KICONTHEMES_DEPRECATED_EXPORT QPixmap BarIcon(const QString &name, int size = 0, int state = KIconLoader::DefaultState, const QStringList &overlays = QStringList()); /** @@ -621,8 +627,11 @@ /** * \relates KIconLoader * Load a small icon. + * @deprecated since 5.63. Prefer QIcon::fromTheme instead where possible, + * if you need a pixmap use QIcon::pixmap with KIconLoader::StdSizes, + * if you need the overlay, use KIconLoader::loadIcon. */ -KICONTHEMES_EXPORT QPixmap SmallIcon(const QString &name, int size = 0, +KICONTHEMES_DEPRECATED_EXPORT QPixmap SmallIcon(const QString &name, int size = 0, int state = KIconLoader::DefaultState, const QStringList &overlays = QStringList()); /** @@ -637,8 +646,11 @@ /** * \relates KIconLoader * Load a main toolbar icon. + * @deprecated since 5.63. Prefer QIcon::fromTheme instead where possible, + * if you need a pixmap use QIcon::pixmap with KIconLoader::StdSizes, + * if you need the overlay, use KIconLoader::loadIcon. */ -KICONTHEMES_EXPORT QPixmap MainBarIcon(const QString &name, int size = 0, +KICONTHEMES_DEPRECATED_EXPORT QPixmap MainBarIcon(const QString &name, int size = 0, int state = KIconLoader::DefaultState, const QStringList &overlays = QStringList()); /**