MCPcopy Create free account
hub / github.com/KDE/krusader / IconCacheKey

Method IconCacheKey

app/icon.cpp:190–199  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

188{
189public:
190 IconCacheKey(const QString &name, const QStringList &overlays, const QSize &size, QIcon::Mode mode, QIcon::State state)
191 : name(name)
192 , overlays(overlays)
193 , size(size)
194 , mode(mode)
195 , state(state)
196 {
197 auto repr = QString("%1 [%2] %3x%4 %5 %6").arg(name).arg(overlays.join(';')).arg(size.width()).arg(size.height()).arg((int)mode).arg((int)state);
198 _hash = qHash(repr);
199 }
200
201 bool operator==(const IconCacheKey &x) const
202 {

Callers

nothing calls this directly

Calls 2

qHashFunction · 0.85
QStringClass · 0.50

Tested by

no test coverage detected