| 37 | |
| 38 | |
| 39 | QPixmap |
| 40 | DeviceDialog::getDeviceIcon(Suscan::Source::Device const &dev) |
| 41 | { |
| 42 | QString iconPath = ":/icons/"; |
| 43 | |
| 44 | if (dev.isRemote()) |
| 45 | iconPath += "network-device"; |
| 46 | else |
| 47 | iconPath += "devices"; |
| 48 | |
| 49 | if (!dev.isAvailable()) |
| 50 | iconPath += "-unavail"; |
| 51 | |
| 52 | return QPixmap(iconPath + ".png"); |
| 53 | } |
| 54 | |
| 55 | void |
| 56 | DeviceDialog::setRefreshing(bool refreshing) |
nothing calls this directly
no test coverage detected