Changeset View
Changeset View
Standalone View
Standalone View
src/kitemviews/kfileitemlistwidget.cpp
Show First 20 Lines • Show All 114 Lines • ▼ Show 20 Line(s) | |||||
115 | 115 | | |||
116 | bool KFileItemListWidget::isRoleRightAligned(const QByteArray& role) const | 116 | bool KFileItemListWidget::isRoleRightAligned(const QByteArray& role) const | ||
117 | { | 117 | { | ||
118 | return role == "size"; | 118 | return role == "size"; | ||
119 | } | 119 | } | ||
120 | 120 | | |||
121 | bool KFileItemListWidget::isHidden() const | 121 | bool KFileItemListWidget::isHidden() const | ||
122 | { | 122 | { | ||
123 | return data().value("text").toString().startsWith(QLatin1Char('.')); | 123 | return data().value("isHidden").toBool(); | ||
emmanuelp: KFileItem::isHidden() already checks if the file name starts with a dot, so this check can be… | |||||
124 | } | 124 | } | ||
125 | 125 | | |||
126 | QFont KFileItemListWidget::customizedFont(const QFont& baseFont) const | 126 | QFont KFileItemListWidget::customizedFont(const QFont& baseFont) const | ||
127 | { | 127 | { | ||
128 | // The customized font should be italic if the file is a symbolic link. | 128 | // The customized font should be italic if the file is a symbolic link. | ||
129 | QFont font(baseFont); | 129 | QFont font(baseFont); | ||
130 | font.setItalic(data().value("isLink").toBool()); | 130 | font.setItalic(data().value("isLink").toBool()); | ||
131 | return font; | 131 | return font; | ||
Show All 33 Lines |
KFileItem::isHidden() already checks if the file name starts with a dot, so this check can be removed.