diff options
| author | Peter Penz <[email protected]> | 2012-02-15 16:10:01 +0100 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2012-02-15 16:20:47 +0100 |
| commit | 749362987b9617ddfc461b647ac436be5a6eaca4 (patch) | |
| tree | fa4f943872d44450d946e2ad4ea05ffd264e9b6b /src/kitemviews/kfileitemlistwidget.cpp | |
| parent | cf72e481110d76081d1757dc89da5d8f68627b19 (diff) | |
Folders Panel: Use the whole width as selection region
As no rubberband-selection is enabled for the Folders Panel it does
not make sense to keep the selection region as small as possible.
BUG: 294111
FIXED-IN: 4.8.1
Diffstat (limited to 'src/kitemviews/kfileitemlistwidget.cpp')
| -rw-r--r-- | src/kitemviews/kfileitemlistwidget.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/kitemviews/kfileitemlistwidget.cpp b/src/kitemviews/kfileitemlistwidget.cpp index dc1554dab..83fb914a1 100644 --- a/src/kitemviews/kfileitemlistwidget.cpp +++ b/src/kitemviews/kfileitemlistwidget.cpp @@ -780,8 +780,11 @@ void KFileItemListWidget::updateDetailsLayoutTextCache() switch (textId) { case Name: { + const qreal textWidth = option.extendedSelectionRegion + ? size().width() - m_textPos[textId].x() + : requiredWidth + 2 * option.padding; m_textRect = QRectF(m_textPos[textId].x() - option.padding, 0, - requiredWidth + 2 * option.padding, size().height()); + textWidth, size().height()); // The column after the name should always be aligned on the same x-position independent // from the expansion-level shown in the name column |
