diff options
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/itemviews/qlistview.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/itemviews/qlistview.cpp b/src/gui/itemviews/qlistview.cpp index e6949fd..3a8cedb 100644 --- a/src/gui/itemviews/qlistview.cpp +++ b/src/gui/itemviews/qlistview.cpp @@ -2299,7 +2299,7 @@ QListViewItem QListModeViewBase::indexToListViewItem(const QModelIndex &index) c : segmentPositions.at(segment + 1)); size.setWidth(right - pos.x()); } else { // make the items as wide as the viewport - size.setWidth(qMax(size.width(), viewport()->width())); + size.setWidth(qMax(size.width(), viewport()->width() - 2 * spacing())); } } |