Commit e3e42837 authored by Stefan Brüns's avatar Stefan Brüns
Browse files

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.

CCBUG: 339193
REVIEW: 120606
parent 877fdcd9
......@@ -982,8 +982,7 @@ QStringList KFileItem::overlays() const
names.append("emblem-symbolic-link");
}
if (((d->m_fileMode & QT_STAT_MASK) != QT_STAT_DIR) // Locked dirs have a special icon, use the overlay for files only
&& !isReadable()) {
if (!isReadable()) {
names.append("object-locked");
}
......@@ -1022,11 +1021,6 @@ QStringList KFileItem::overlays() const
}
#endif // Q_OS_WIN
if (d->m_url.path().endsWith(QLatin1String(".gz")) &&
d->m_mimeType.inherits("application/x-gzip")) {
names.append("application-zip");
}
return names;
}
......
Supports Markdown
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