┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/kitemviews/kfileitemlistwidget.cpp
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2012-02-15 16:10:01 +0100
committerPeter Penz <[email protected]>2012-02-15 16:20:47 +0100
commit749362987b9617ddfc461b647ac436be5a6eaca4 (patch)
treefa4f943872d44450d946e2ad4ea05ffd264e9b6b /src/kitemviews/kfileitemlistwidget.cpp
parentcf72e481110d76081d1757dc89da5d8f68627b19 (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.cpp5
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