mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-03 00:15:21 +00:00
fix: 修复日历图标显示异常的问题
某些情况下,日历图标中的3月会显示错位,这部分是因为3月在svg图片中信息和其他月份不一样,当前已修改 Log: 修复部分情况下日历图标显示异常的问题 Influence: 日历图标显示
This commit is contained in:
parent
c1efb0fb2d
commit
8e14a8d134
File diff suppressed because one or more lines are too long
@ -35,7 +35,7 @@ public:
|
||||
static bool getIcon(QPixmap &pix, const QString iconName, const int size, bool reObtain = false);
|
||||
|
||||
private:
|
||||
static bool createCalendarIcon(const QString &fileName);
|
||||
static bool createCalendarIcon(const QDate &date, const QString &fileName);
|
||||
};
|
||||
|
||||
#endif // THEMEAPPICON_H
|
||||
|
@ -24,6 +24,7 @@
|
||||
#include <QDebug>
|
||||
#include <QApplication>
|
||||
#include <QFile>
|
||||
#include <QDate>
|
||||
|
||||
#include <gtest/gtest.h>
|
||||
|
||||
@ -86,6 +87,6 @@ TEST_F(Ut_ThemeAppIcon, getIcon_test4)
|
||||
TEST_F(Ut_ThemeAppIcon, createCalendarIcon_test)
|
||||
{
|
||||
const QString &filePath = "/tmp/calendar.svg";
|
||||
ASSERT_TRUE(ThemeAppIcon::createCalendarIcon(filePath));
|
||||
ASSERT_TRUE(ThemeAppIcon::createCalendarIcon(QDate::currentDate(), filePath));
|
||||
QFile::remove(filePath);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user