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::UDev::UDevDevice::icon()
standard XDG icons, should be there Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
860f672116
commit
01e742c868
1 changed files with 6 additions and 0 deletions
|
@ -306,6 +306,12 @@ QString UDevDevice::icon() const
|
|||
case Solid::AudioInterface::Modem:
|
||||
return QLatin1String("modem");
|
||||
}
|
||||
} else if (queryDeviceInterface(Solid::DeviceInterface::NetworkInterface)) {
|
||||
const NetworkInterface networkIface(const_cast<UDevDevice *>(this));
|
||||
if (networkIface.isWireless()) {
|
||||
return QLatin1String("network-wireless");
|
||||
}
|
||||
return QLatin1String("network-wired");
|
||||
} else if (queryDeviceInterface(Solid::DeviceInterface::Graphic)) {
|
||||
return QLatin1String("video-display");
|
||||
} else if (queryDeviceInterface(Solid::DeviceInterface::Input)) {
|
||||
|
|
Loading…
Add table
Reference in a new issue