KGuiAddons 5.109.0
kiconutils.h
1/*
2 SPDX-FileCopyrightText: 2013 Martin Klapetek <mklapetek@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
5*/
6
7#ifndef KICONUTILS_H
8#define KICONUTILS_H
9
10#include <kguiaddons_export.h>
11
12#include <QIcon>
13
18namespace KIconUtils
19{
26KGUIADDONS_EXPORT QIcon addOverlay(const QIcon &icon, const QIcon &overlay, Qt::Corner position);
27
38KGUIADDONS_EXPORT QIcon addOverlays(const QIcon &icon, const QHash<Qt::Corner, QIcon> &overlays);
39
56KGUIADDONS_EXPORT QIcon addOverlays(const QIcon &icon, const QStringList &overlays);
57
76KGUIADDONS_EXPORT QIcon addOverlays(const QString &iconName, const QStringList &overlays);
77}
78
79#endif // KICONUTILS_H
Provides utility functions for icons.
QIcon addOverlay(const QIcon &icon, const QIcon &overlay, Qt::Corner position)
Adds the overlay over the icon in the specified position.
QIcon addOverlays(const QIcon &icon, const QHash< Qt::Corner, QIcon > &overlays)
Adds overlays over the icon.