mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-04 17:33:05 +00:00
refactor(network): first use theme icon
Change-Id: I3f161c98e7d80228c8fa3a23ef081c1dc6406acb
This commit is contained in:
parent
0421d7965b
commit
7c536e8243
Notes:
Deepin Code Review
2017-11-28 13:58:42 +08:00
Verified+1: Anonymous Coward #1000004 Code-Review+2: 石博文 <sbw@sbw.so> Submitted-by: kirigaya <kirigaya@mkacg.com> Submitted-at: Tue, 28 Nov 2017 13:58:41 +0800 Reviewed-on: https://cr.deepin.io/28923 Project: dde/dde-dock Branch: refs/heads/master
@ -187,8 +187,8 @@ const QPixmap WirelessItem::backgroundPix(const int size)
|
||||
const QPixmap WirelessItem::cachedPix(const QString &key, const int size)
|
||||
{
|
||||
if (!m_icons.contains(key))
|
||||
m_icons.insert(key, QIcon(":/wireless/resources/wireless/" + key + ".svg").pixmap(size));
|
||||
// m_icons.insert(key, QIcon::fromTheme(key).pixmap(QSize(96, 96)));
|
||||
m_icons.insert(key, QIcon::fromTheme(key + ".svg",
|
||||
QIcon(":/wireless/resources/wireless/" + key + ".svg")).pixmap(size));
|
||||
|
||||
return m_icons.value(key);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user