┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphindetailsview.cpp
diff options
context:
space:
mode:
authorRafael Fernández López <[email protected]>2007-09-26 02:07:30 +0000
committerRafael Fernández López <[email protected]>2007-09-26 02:07:30 +0000
commit1b0a498799725880aa7e25ae42593e364e04a377 (patch)
tree476e9c49803e3d6746e83871b3cef9459471db4a /src/dolphindetailsview.cpp
parent1e1e1b6c8604dfef3acca02badfce62e819c79ee (diff)
This fixes the problem of the "hidden filename corner case" by setting the column to the width of its contents. Probably is a poor solution...
CCMAIL: [email protected] svn path=/trunk/KDE/kdebase/apps/; revision=717081
Diffstat (limited to 'src/dolphindetailsview.cpp')
-rw-r--r--src/dolphindetailsview.cpp3
1 files changed, 2 insertions, 1 deletions
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();