viewport()->setAttribute(Qt::WA_Hover);
setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOn);
- setVerticalScrollMode(QAbstractItemView::ScrollPerPixel);
setSelectionBehavior(SelectItems);
setSelectionMode(QAbstractItemView::ExtendedSelection);
setDragDropMode(QAbstractItemView::DragDrop);
setDropIndicatorShown(false);
setFocusPolicy(Qt::NoFocus);
+ setVerticalScrollMode(QListView::ScrollPerPixel);
+ setHorizontalScrollMode(QListView::ScrollPerPixel);
// apply the column mode settings to the widget
const ColumnModeSettings* settings = DolphinSettings::instance().columnModeSettings();
// all columns are hidden, now reload the directory lister
KDirLister* dirLister = m_dolphinModel->dirLister();
const KUrl& rootUrl = m_columns[0]->url();
- dirLister->openUrl(rootUrl, false, true);
+ dirLister->openUrl(rootUrl, KDirLister::Reload);
updateColumns();
}
// The current URL is not a child of the dir lister
// URL. This may happen when e. g. a place has been selected
// and hence the view must be reset.
- m_dirLister->openUrl(url, false, false);
+ m_dirLister->openUrl(url, KDirLister::NoFlags);
}
}
} else {
- m_dirLister->openUrl(url, false, reload);
+ m_dirLister->openUrl(url, reload ? KDirLister::Reload : KDirLister::NoFlags);
}
}
if (m_dirLister->url() != baseUrl) {
m_dirLister->stop();
- m_dirLister->openUrl(baseUrl, false, true);
+ m_dirLister->openUrl(baseUrl, KDirLister::Reload);
} else {
loadSubTree();
}