Summary: | file names not displayed completely in file dialog | ||
---|---|---|---|
Product: | [Frameworks and Libraries] kio | Reporter: | Philippe Fremy <phil> |
Component: | kfile | Assignee: | Carsten Pfeiffer <pfeiffer> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Gentoo Packages | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Attachments: |
screenshot of the problem
Patch to implement dynamic column width |
Description
Philippe Fremy
2003-02-17 21:09:59 UTC
Created attachment 980 [details]
screenshot of the problem
Yes, I know about this problem for a long time and discussed this with Reggie (getting a "smart alignment/grid" mode to QIconView). Unfortunately, nothing happened. I'm eventually going to provide a KFileView based on QListBox to overcome that problem. Created attachment 986 [details]
Patch to implement dynamic column width
The attached patch was sent to me by Stephan Jaensch. It implements the
requested feature with only minor changes to the code. The maximum width is
arbitrarily chosen to 300 pixels, but it can be anything. Each column's width
will depende on the width of the widest item in that column. I've used it for
three weeks now, and it seems to work perfectly.
Subject: kdelibs/kio/kfile CVS commit by pfeiffer: much better spacing, as proposed by Stephan Jaensch (for the thumbnail view, we need to keep the gridX tho) Thanks! CCMAIL: 54760-close@bugs.kde.org M +3 -2 kfileiconview.cpp 1.78 --- kdelibs/kio/kfile/kfileiconview.cpp #1.77:1.78 @@ -111,5 +111,5 @@ KFileIconView::KFileIconView(QWidget *pa toolTip = 0; setResizeMode( Adjust ); - setGridX( 160 ); + setMaxItemWidth( 300 ); setWordWrapIconText( false ); setArrangement( TopToBottom ); @@ -495,5 +495,6 @@ void KFileIconView::slotSmallColumns() d->previews->setChecked( false ); } - setGridX( 160 ); + setGridX( -1 ); + setMaxItemWidth( 300 ); setItemTextPos( Right ); setArrangement( TopToBottom ); |