2023-02-16 13:51:55 +08:00
|
|
|
// Copyright (C) 2011 ~ 2018 Deepin Technology Co., Ltd.
|
|
|
|
// SPDX-FileCopyrightText: 2018 - 2023 UnionTech Software Technology Co., Ltd.
|
2022-09-06 11:36:55 +08:00
|
|
|
//
|
|
|
|
// SPDX-License-Identifier: LGPL-3.0-or-later
|
2017-09-18 14:33:44 +08:00
|
|
|
|
2016-06-14 16:01:01 +08:00
|
|
|
#ifndef THEMEAPPICON_H
|
|
|
|
#define THEMEAPPICON_H
|
|
|
|
|
|
|
|
#include <QObject>
|
2021-08-25 21:03:30 +08:00
|
|
|
#include <QIcon>
|
2016-06-14 16:01:01 +08:00
|
|
|
|
2021-08-25 21:03:30 +08:00
|
|
|
class ThemeAppIcon
|
2016-06-14 16:01:01 +08:00
|
|
|
{
|
|
|
|
public:
|
2021-08-25 21:03:30 +08:00
|
|
|
explicit ThemeAppIcon();
|
2016-06-14 16:01:01 +08:00
|
|
|
~ThemeAppIcon();
|
|
|
|
|
2021-04-22 09:56:28 +08:00
|
|
|
static QIcon getIcon(const QString &name);
|
2021-04-26 11:28:47 +08:00
|
|
|
static bool getIcon(QPixmap &pix, const QString iconName, const int size, bool reObtain = false);
|
2021-08-25 21:03:30 +08:00
|
|
|
|
|
|
|
private:
|
2022-05-09 18:36:21 +08:00
|
|
|
static bool createCalendarIcon(const QDate &date, const QString &fileName);
|
2016-06-14 16:01:01 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // THEMEAPPICON_H
|