Changeset View
Changeset View
Standalone View
Standalone View
libs/widgetutils/kis_icon_utils.cpp
Show First 20 Lines • Show All 96 Lines • ▼ Show 20 Line(s) | 95 | Q_FOREACH (auto p, icons) { | |||
---|---|---|---|---|---|
97 | sz.chop(1); | 97 | sz.chop(1); | ||
98 | int size = sz.toInt(); | 98 | int size = sz.toInt(); | ||
99 | icon.addFile(p.second, QSize(size, size)); | 99 | icon.addFile(p.second, QSize(size, size)); | ||
100 | } | 100 | } | ||
101 | return icon; | 101 | return icon; | ||
102 | } | 102 | } | ||
103 | 103 | | |||
104 | QIcon icon = QIcon::fromTheme(name); | 104 | QIcon icon = QIcon::fromTheme(name); | ||
105 | qWarning() << "\tfalling back on QIcon::FromTheme:" << name; | 105 | // qWarning() << "\tfalling back on QIcon::FromTheme:" << name; | ||
106 | return icon; | 106 | return icon; | ||
107 | } | 107 | } | ||
108 | 108 | | |||
109 | bool adjustIcon(QIcon *icon) | 109 | bool adjustIcon(QIcon *icon) | ||
110 | { | 110 | { | ||
111 | bool result = false; | 111 | bool result = false; | ||
112 | 112 | | |||
113 | QString iconName = icon->name(); | 113 | QString iconName = icon->name(); | ||
▲ Show 20 Lines • Show All 66 Lines • Show Last 20 Lines |