| 458 | } |
| 459 | |
| 460 | int IconList::getIconIndex(const QString &key) const |
| 461 | { |
| 462 | auto iter = name_index.find(key == "default" ? "grass" : key); |
| 463 | if (iter != name_index.end()) |
| 464 | return *iter; |
| 465 | |
| 466 | return -1; |
| 467 | } |
| 468 | |
| 469 | QString IconList::getDirectory() const |
| 470 | { |
no test coverage detected