X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/blobdiff_plain/1e1e1b6c8604dfef3acca02badfce62e819c79ee..7923d297f187bc95033cb1cca5931b5d601765c2:/src/dolphindetailsview.cpp diff --git a/src/dolphindetailsview.cpp b/src/dolphindetailsview.cpp index b7bb37d07..8ffa65e8f 100644 --- a/src/dolphindetailsview.cpp +++ b/src/dolphindetailsview.cpp @@ -117,7 +117,8 @@ bool DolphinDetailsView::event(QEvent* event) QHeaderView* headerView = header(); headerView->setStretchLastSection(false); headerView->setResizeMode(QHeaderView::ResizeToContents); - headerView->setResizeMode(0, QHeaderView::Stretch); + headerView->setMinimumSectionSize(-1); + headerView->setDefaultSectionSize(viewport()->width()); // hide columns if this is indicated by the settings const DetailsModeSettings* settings = DolphinSettings::instance().detailsModeSettings();