| Line | Branch | Exec | Source |
|---|---|---|---|
| 1 | #include "helpers/icon_loader.hpp" | ||
| 2 | |||
| 3 | ✗ | QIcon icon_loader::themed( | |
| 4 | const std::initializer_list<const char*> names, | ||
| 5 | const QStyle::StandardPixmap fallback | ||
| 6 | ) { | ||
| 7 | |||
| 8 | #if !(defined(KC_ANDROID) || defined(Q_OS_ANDROID)) | ||
| 9 | ✗ | for (auto name : names) { | |
| 10 | ✗ | QIcon ico = QIcon::fromTheme(QString::fromLatin1(name)); | |
| 11 | ✗ | if (!ico.isNull()) { | |
| 12 | ✗ | return ico; | |
| 13 | } | ||
| 14 | ✗ | } | |
| 15 | #endif | ||
| 16 | ✗ | return QApplication::style()->standardIcon(fallback); | |
| 17 | } | ||
| 18 |