| 188 | { |
| 189 | public: |
| 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 | { |