diff options
| author | Frank Reininghaus <[email protected]> | 2010-11-20 17:53:38 +0000 |
|---|---|---|
| committer | Frank Reininghaus <[email protected]> | 2010-11-20 17:53:38 +0000 |
| commit | 5e7da43c2ddeb9cf99e5a2d2521b4274557b921a (patch) | |
| tree | f9b542eaa2c9c3299d85cbaabdd65e6e34a6bda7 /src/views/dolphindetailsview.cpp | |
| parent | 6ec1a1eb364f70d33922a6936f01d981e9e7f620 (diff) | |
Make sure that an item's visualRect in the Details View is not wider
than the "Name" column. Fixes keyboard navigation problems if files
with very wide names are present in the current folder.
Unit test included.
CCBUG: 257401
svn path=/trunk/KDE/kdebase/apps/; revision=1199123
Diffstat (limited to 'src/views/dolphindetailsview.cpp')
| -rw-r--r-- | src/views/dolphindetailsview.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/views/dolphindetailsview.cpp b/src/views/dolphindetailsview.cpp index 2d0d522ac..83460163c 100644 --- a/src/views/dolphindetailsview.cpp +++ b/src/views/dolphindetailsview.cpp @@ -299,7 +299,10 @@ QRect DolphinDetailsView::visualRect(const QModelIndex& index) const const KFileItem item = m_dolphinViewController->itemForIndex(index); if (!item.isNull()) { const int width = DolphinFileItemDelegate::nameColumnWidth(item.text(), viewOptions()); - rect.setWidth(width); + + if (width < rect.width()) { + rect.setWidth(width); + } } return rect; |
