mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-23 10:22:48 +00:00
solid: handle Solid::DeviceInterface::NetworkInterface in Solid::Backends::Devinfo::DevinfoDevice::icon()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
1d7883f245
commit
bfde45b639
1 changed files with 6 additions and 0 deletions
|
@ -183,6 +183,12 @@ QString DevinfoDevice::icon() const
|
|||
return QString("computer");
|
||||
} else if (queryDeviceInterface(Solid::DeviceInterface::Processor)) {
|
||||
return QLatin1String("cpu");
|
||||
} else if (queryDeviceInterface(Solid::DeviceInterface::NetworkInterface)) {
|
||||
const NetworkInterface networkIface(const_cast<DevinfoDevice *>(this));
|
||||
if (networkIface.isWireless()) {
|
||||
return QLatin1String("network-wireless");
|
||||
}
|
||||
return QLatin1String("network-wired");
|
||||
} else if (queryDeviceInterface(Solid::DeviceInterface::Graphic)) {
|
||||
return QLatin1String("video-display");
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue