Folders Panel: Turn on items-expanding

Since the fix of bug 289090 the items-expanding is not automatically
turned on anymore when using the DetailsMode.

CCBUG: 289090
This commit is contained in:
Peter Penz 2012-03-09 16:27:13 +01:00
parent 9035ae212d
commit d5726758b8

View file

@ -152,6 +152,7 @@ void FoldersPanel::showEvent(QShowEvent* event)
const qreal itemHeight = qMax(int(KIconLoader::SizeSmall), styleOption.fontMetrics.height());
view->setItemSize(QSizeF(-1, itemHeight + 2 * styleOption.padding));
view->setItemLayout(KFileItemListView::DetailsLayout);
view->setSupportsItemExpanding(true);
// Set the opacity to 0 initially. The opacity will be increased after the loading of the initial tree
// has been finished in slotLoadingCompleted(). This prevents an unnecessary animation-mess when
// opening the folders panel.