Backport. Show the vertical scrollbar only when necessary.

svn path=/branches/KDE/4.0/kdebase/apps/; revision=769333
This commit is contained in:
Rafael Fernández López 2008-02-01 08:26:29 +00:00
parent cdc40d4398
commit cec2a40f8b

View file

@ -63,7 +63,7 @@ DolphinColumnWidget::DolphinColumnWidget(QWidget* parent,
setMouseTracking(true);
viewport()->setAttribute(Qt::WA_Hover);
setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOn);
setVerticalScrollBarPolicy(Qt::ScrollBarAsNeeded);
setSelectionBehavior(SelectItems);
setSelectionMode(QAbstractItemView::ExtendedSelection);
setDragDropMode(QAbstractItemView::DragDrop);