- const KUrl rootUrl = m_columns[0]->url();
- dirLister->openUrl(rootUrl, false, true);
-}
-
-void DolphinColumnView::invertSelection()
-{
- // TODO: this approach of inverting the selection is quite slow. It should
- // be possible to speedup the implementation by using QItemSelection, but
- // all adempts have failed yet...
-
- ColumnWidget* column = activeColumn();
- QItemSelectionModel* selModel = column->selectionModel();
-
- KDirLister* dirLister = m_dolphinModel->dirLister();
- const KFileItemList list = dirLister->itemsForDir(column->url());
- foreach (KFileItem* item, list) {
- const QModelIndex index = m_dolphinModel->indexForUrl(item->url());
- selModel->select(m_proxyModel->mapFromSource(index), QItemSelectionModel::Toggle);
- }
+ const KUrl& rootUrl = m_columns[0]->url();
+ m_initializedDirLister = dirLister->openUrl(m_columns[0]->url(), false, true);
+ reloadColumns();