mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-23 18:32:49 +00:00
kio: add favicon to the overlays from KFileItem::overlays()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
fe6daca7c7
commit
93a71cccd8
1 changed files with 8 additions and 0 deletions
|
@ -636,6 +636,14 @@ QStringList KFileItem::overlays() const
|
|||
names.append("application-zip");
|
||||
}
|
||||
|
||||
// only for URLs with http or https as protocol
|
||||
if (!d->m_bIsLocalUrl) {
|
||||
const QString favIcon = KMimeType::favIconForUrl(d->m_url);
|
||||
if (!favIcon.isEmpty()) {
|
||||
names.append(favIcon);
|
||||
}
|
||||
}
|
||||
|
||||
return names;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue