* removed redundant applying of a hidden item effect before starting the preview
svn path=/trunk/KDE/kdebase/apps/; revision=767730
{
// make the icons of all hidden files semitransparent
foreach (KFileItem item, items) {
{
// make the icons of all hidden files semitransparent
foreach (KFileItem item, items) {
- if (item.name().startsWith('.')) {
applyHiddenItemEffect(item);
}
}
applyHiddenItemEffect(item);
}
}
// is generated first, as this improves the feeled performance a lot.
KFileItemList orderedItems;
foreach (KFileItem item, 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);
const QModelIndex dirIndex = m_dolphinModel->indexForItem(item);
const QModelIndex proxyIndex = m_proxyModel->mapFromSource(dirIndex);
const QRect itemRect = m_view->visualRect(proxyIndex);
const QModelIndex idx = m_dolphinModel->indexForItem(item);
if (idx.isValid() && (idx.column() == 0)) {
QPixmap newPixmap = pixmap;
const QModelIndex idx = m_dolphinModel->indexForItem(item);
if (idx.isValid() && (idx.column() == 0)) {
QPixmap newPixmap = pixmap;
- if (item.name().startsWith('.')) {
KIconEffect::semiTransparent(newPixmap);
}
KIconEffect::semiTransparent(newPixmap);
}