mirror of
https://github.com/feather-wallet/feather.git
synced 2025-01-09 12:29:44 +00:00
32 lines
498 B
C++
32 lines
498 B
C++
// SPDX-License-Identifier: BSD-3-Clause
|
|
// SPDX-FileCopyrightText: 2020-2023 The Monero Project
|
|
|
|
#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
|