MCPcopy Create free account
hub / github.com/BatchDrake/SigDigger / getDeviceIcon

Method getDeviceIcon

Components/DeviceDialog.cpp:39–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37
38
39QPixmap
40DeviceDialog::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
55void
56DeviceDialog::setRefreshing(bool refreshing)

Callers

nothing calls this directly

Calls 2

isAvailableMethod · 0.80
isRemoteMethod · 0.45

Tested by

no test coverage detected