feather/src/utils/Icons.h

33 lines
498 B
C
Raw Normal View History

2021-05-02 18:22:38 +00:00
// SPDX-License-Identifier: BSD-3-Clause
2023-01-02 19:30:11 +00:00
// SPDX-FileCopyrightText: 2020-2023 The Monero Project
2021-05-02 18:22:38 +00:00
#ifndef FEATHER_ICONS_H
#define FEATHER_ICONS_H
#include <QIcon>
#include <QHash>
#include <QString>
class Icons {
public:
QIcon icon(const QString& name);
static Icons* instance();
private:
Icons();
static Icons* m_instance;
QHash<QString, QIcon> m_iconCache;
Q_DISABLE_COPY(Icons)
};
inline Icons* icons()
{
return Icons::instance();
}
#endif //FEATHER_ICONS_H