mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-02 15:45:21 +00:00

某些情况下,日历图标中的3月会显示错位,这部分是因为3月在svg图片中信息和其他月份不一样,当前已修改 Log: 修复部分情况下日历图标显示异常的问题 Influence: 日历图标显示 Task: https://pms.uniontech.com/task-view-122601.html Change-Id: I0bb098e22402c163323f7b89cf0ffd3de25bb044
42 lines
1.2 KiB
C++
42 lines
1.2 KiB
C++
/*
|
|
* Copyright (C) 2011 ~ 2018 Deepin Technology Co., Ltd.
|
|
*
|
|
* Author: sbw <sbw@sbw.so>
|
|
*
|
|
* Maintainer: sbw <sbw@sbw.so>
|
|
*
|
|
* This program is free software: you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
* any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
#ifndef THEMEAPPICON_H
|
|
#define THEMEAPPICON_H
|
|
|
|
#include <QObject>
|
|
#include <QIcon>
|
|
|
|
class ThemeAppIcon
|
|
{
|
|
public:
|
|
explicit ThemeAppIcon();
|
|
~ThemeAppIcon();
|
|
|
|
static QIcon getIcon(const QString &name);
|
|
static bool getIcon(QPixmap &pix, const QString iconName, const int size, bool reObtain = false);
|
|
|
|
private:
|
|
static bool createCalendarIcon(const QDate &date, const QString &fileName);
|
|
};
|
|
|
|
#endif // THEMEAPPICON_H
|