┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2008-01-28 17:01:41 +0000
committerPeter Penz <[email protected]>2008-01-28 17:01:41 +0000
commit0e31baf9f65be83174348a7014cba7ded1a2a2c9 (patch)
treedfac7e388892d294dcd38a592f9bb407a0c493b8 /src
parenta6f5c499ef9b1253415b3887eb51c76fee2ea5c4 (diff)
* 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
Diffstat (limited to 'src')
-rw-r--r--src/iconmanager.cpp8
1 files changed, 2 insertions, 6 deletions
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);
}