]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Folders Panel: Turn on items-expanding
authorPeter Penz <peter.penz19@gmail.com>
Fri, 9 Mar 2012 15:27:13 +0000 (16:27 +0100)
committerPeter Penz <peter.penz19@gmail.com>
Fri, 9 Mar 2012 15:28:35 +0000 (16:28 +0100)
Since the fix of bug 289090 the items-expanding is not automatically
turned on anymore when using the DetailsMode.

CCBUG: 289090

src/panels/folders/folderspanel.cpp

index 58dd7904db319ee127a5f90d311445ce22f73c4c..87b0297c2711c10974007bea5c144a59fa1d89f1 100644 (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.