Commit 9ba9651c authored by Stefan Brüns's avatar Stefan Brüns

cleanup overlay icon usage

The locked overlay should be added also for directories, as there is no
distinct "unreadable directory" icon.
No overlay icon for "gzip files with .gz file ending", there is a
mimetype icon for gzip files.

Backport of 877fdcd9fcbdf8267ce509d8918e5cb5a1a455aa from kio

CCBUG: 339193
REVIEW: 120606
parent db1b9b53
......@@ -959,8 +959,7 @@ QStringList KFileItem::overlays() const
names.append("emblem-symbolic-link");
}
if ( !S_ISDIR( d->m_fileMode ) // Locked dirs have a special icon, use the overlay for files only
&& !isReadable()) {
if (!isReadable()) {
names.append("object-locked");
}
......@@ -1000,11 +999,6 @@ QStringList KFileItem::overlays() const
}
#endif // Q_OS_WIN
if ( d->m_pMimeType && d->m_url.fileName().endsWith( QLatin1String( ".gz" ) ) &&
d->m_pMimeType->is("application/x-gzip") ) {
names.append("application-zip");
}
return names;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment