viewport()->setAttribute(Qt::WA_Hover);
setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOn);
- // TODO: enable ScrollPerPixel again as soon as a Qt-patch
- // is supplied which fixes a possible crash
- //setVerticalScrollMode(QAbstractItemView::ScrollPerPixel);
+ setVerticalScrollMode(QAbstractItemView::ScrollPerPixel);
setSelectionBehavior(SelectItems);
setSelectionMode(QAbstractItemView::ExtendedSelection);
setDragDropMode(QAbstractItemView::DragDrop);
void DolphinColumnView::updateColumns()
{
+ KDirLister* dirLister = m_dolphinModel->dirLister();
+ foreach (ColumnWidget* column, m_columns) {
+ dirLister->updateDirectory(column->url());
+ }
+
const int end = m_columns.count() - 2; // next to last column
for (int i = 0; i <= end; ++i) {
ColumnWidget* nextColumn = m_columns[i + 1];
-
- KDirLister* dirLister = m_dolphinModel->dirLister();
- dirLister->updateDirectory(nextColumn->url());
-
const QModelIndex rootIndex = nextColumn->rootIndex();
if (rootIndex.isValid()) {
nextColumn->show();
setDragDropMode(QAbstractItemView::DragDrop);
setDropIndicatorShown(false);
setAlternatingRowColors(true);
- // TODO: enable ScrollPerPixel again as soon as a Qt-patch
- // is supplied which fixes a possible crash
- // (see http://lists.kde.org/?l=kde-core-devel&m=119077433611662&w=2)
- //setHorizontalScrollMode(QAbstractItemView::ScrollPerPixel);
- //setVerticalScrollMode(QAbstractItemView::ScrollPerPixel);
+ setHorizontalScrollMode(QAbstractItemView::ScrollPerPixel);
+ setVerticalScrollMode(QAbstractItemView::ScrollPerPixel);
setMouseTracking(true);
viewport()->setAttribute(Qt::WA_Hover);
setDragDropMode(QAbstractItemView::DragDrop);
setDropIndicatorShown(false);
setAutoExpandDelay(300);
- // TODO: enable ScrollPerPixel again as soon as a Qt-patch
- // is supplied which fixes a possible crash
- // (see http://lists.kde.org/?l=kde-core-devel&m=119077433611662&w=2)
- //setHorizontalScrollMode(QAbstractItemView::ScrollPerPixel);
- //setVerticalScrollMode(QAbstractItemView::ScrollPerPixel);
+ setHorizontalScrollMode(QAbstractItemView::ScrollPerPixel);
+ setVerticalScrollMode(QAbstractItemView::ScrollPerPixel);
viewport()->setAttribute(Qt::WA_Hover);