Added required refreshItems logic. This relates to bug 146.

cherry picked from commit bf0861baf0)
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/182/head
Michele Calgaro 9 years ago
parent cb57172c20
commit b78e619053

@ -1228,6 +1228,7 @@ void KonqKfmIconView::slotRefreshItems( const KFileItemList& entries )
m_pIconView->updateContents();
}
}
KonqDirPart::refreshItems(entries); // Pass refresh command to KonqDirPart too
}
void KonqKfmIconView::slotClear()

@ -1376,6 +1376,7 @@ void KonqBaseListViewWidget::slotRefreshItems( const KFileItemList & entries )
}
}
m_pBrowserView->refreshItems(entries); // Pass refresh command to KonqDirPart too
reportItemCounts();
}

@ -440,20 +440,25 @@ void KonqDirPart::updatePasteAction() // KDE4: merge into method above
emit m_extension->enableAction( "paste", paste );
}
void KonqDirPart::newItems( const KFileItemList & entries )
void KonqDirPart::newItems(const KFileItemList &entries)
{
d->dirSizeDirty = true;
if ( m_findPart ) {
emitTotalCount();
}
emit itemsAdded( entries );
emit itemsAdded(entries);
}
void KonqDirPart::deleteItem( KFileItem * fileItem )
void KonqDirPart::deleteItem(KFileItem * fileItem)
{
d->dirSizeDirty = true;
emit itemRemoved( fileItem );
emit itemRemoved(fileItem);
}
void KonqDirPart::refreshItems(const KFileItemList &entries)
{
emit itemsRefresh(entries);
}
void KonqDirPart::emitTotalCount()

@ -128,6 +128,11 @@ public:
*/
void deleteItem( KFileItem * fileItem );
/**
* Refresh the items
*/
void refreshItems(const KFileItemList &entries);
/**
* Show the counts for the directory in the status bar
*/
@ -220,13 +225,19 @@ signals:
* Emitted as the part is updated with new items.
* Useful for informing plugins of changes in view.
*/
void itemsAdded( const KFileItemList& );
void itemsAdded(const KFileItemList &);
/**
* Emitted as the part is updated with these items.
* Useful for informing plugins of changes in view.
*/
void itemRemoved( const KFileItem* );
void itemRemoved(const KFileItem *);
/**
* Emitted when items need to be refreshed (for example when
* a file is renamed)
*/
void itemsRefresh(const KFileItemList &);
/**
* Emitted with the list of filtered-out items whenever

Loading…
Cancel
Save