From: Peter Penz Date: Mon, 28 Jan 2008 17:01:41 +0000 (+0000) Subject: * replace item.name().startsWith('.') by item.isHidden() X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/0e31baf9f65be83174348a7014cba7ded1a2a2c9 * replace item.name().startsWith('.') by item.isHidden() * removed redundant applying of a hidden item effect before starting the preview svn path=/trunk/KDE/kdebase/apps/; revision=767730 --- diff --git a/src/iconmanager.cpp b/src/iconmanager.cpp index a1ab96307..5f9bd5134 100644 --- a/src/iconmanager.cpp +++ b/src/iconmanager.cpp @@ -77,7 +77,7 @@ void IconManager::updateIcons(const KFileItemList& items) { // make the icons of all hidden files semitransparent foreach (KFileItem item, items) { - if (item.name().startsWith('.')) { + if (item.isHidden()) { applyHiddenItemEffect(item); } } @@ -93,10 +93,6 @@ void IconManager::updateIcons(const KFileItemList& items) // is generated first, as this improves the feeled performance a lot. KFileItemList orderedItems; foreach (KFileItem item, items) { - if (item.name().startsWith('.')) { - applyHiddenItemEffect(item); - } - const QModelIndex dirIndex = m_dolphinModel->indexForItem(item); const QModelIndex proxyIndex = m_proxyModel->mapFromSource(dirIndex); const QRect itemRect = m_view->visualRect(proxyIndex); @@ -131,7 +127,7 @@ void IconManager::replaceIcon(const KFileItem& item, const QPixmap& pixmap) const QModelIndex idx = m_dolphinModel->indexForItem(item); if (idx.isValid() && (idx.column() == 0)) { QPixmap newPixmap = pixmap; - if (item.name().startsWith('.')) { + if (item.isHidden()) { KIconEffect::semiTransparent(newPixmap); }