From 60b868108151463a702e8c10933b0ceb99f11bbe Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Sat, 14 Apr 2012 00:22:08 +0200 Subject: Allow to optionally limit the maximum number of text lines Showing the whole filename unclipped seems to be a good default, however for users with a lot of files that have extremely long names this might get a problem especially in the icons-view. - Allow to limit the maximum number of lines in the icons-view - Allow to specify a maximum width in the compact-view (No limit is required for the details-view, as the name is shortened automatically to show other columns) BUG: 288596 FIXED-IN: 4.9.0 --- src/kitemviews/kitemliststyleoption.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/kitemviews/kitemliststyleoption.cpp') diff --git a/src/kitemviews/kitemliststyleoption.cpp b/src/kitemviews/kitemliststyleoption.cpp index c512fa43e..36cfeb088 100644 --- a/src/kitemviews/kitemliststyleoption.cpp +++ b/src/kitemviews/kitemliststyleoption.cpp @@ -30,7 +30,8 @@ KItemListStyleOption::KItemListStyleOption() : horizontalMargin(0), verticalMargin(0), iconSize(KIconLoader::SizeMedium), - extendedSelectionRegion(false) + extendedSelectionRegion(false), + maxTextSize() { } @@ -43,7 +44,8 @@ KItemListStyleOption::KItemListStyleOption(const KItemListStyleOption& other) : horizontalMargin(other.horizontalMargin), verticalMargin(other.verticalMargin), iconSize(other.iconSize), - extendedSelectionRegion(other.extendedSelectionRegion) + extendedSelectionRegion(other.extendedSelectionRegion), + maxTextSize(other.maxTextSize) { } -- cgit v1.3.1