]> cloud.milkyroute.net Git - dolphin.git/commitdiff
This fixes the problem of the "hidden filename corner case" by setting the column...
authorRafael Fernández López <ereslibre@kde.org>
Wed, 26 Sep 2007 02:07:30 +0000 (02:07 +0000)
committerRafael Fernández López <ereslibre@kde.org>
Wed, 26 Sep 2007 02:07:30 +0000 (02:07 +0000)
CCMAIL: peter.penz@gmx.at

svn path=/trunk/KDE/kdebase/apps/; revision=717081

src/dolphindetailsview.cpp

index b7bb37d072ac836032c3f1590367d93958a97ca7..8ffa65e8fd7ddc86fce54a0a58eaee011e4e3837 100644 (file)
@@ -117,7 +117,8 @@ bool DolphinDetailsView::event(QEvent* event)
         QHeaderView* headerView = header();
         headerView->setStretchLastSection(false);
         headerView->setResizeMode(QHeaderView::ResizeToContents);
         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();
 
         // hide columns if this is indicated by the settings
         const DetailsModeSettings* settings = DolphinSettings::instance().detailsModeSettings();