diff options
| author | Peter Penz <[email protected]> | 2012-04-14 00:22:08 +0200 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2012-04-14 00:28:24 +0200 |
| commit | 60b868108151463a702e8c10933b0ceb99f11bbe (patch) | |
| tree | 97b5a6aeca8df6b121674d38b11ea69b11b7878a /src/kitemviews/kitemliststyleoption.cpp | |
| parent | 31ee4085c2b2c374158fb956ac376399ff375b5a (diff) | |
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
Diffstat (limited to 'src/kitemviews/kitemliststyleoption.cpp')
| -rw-r--r-- | src/kitemviews/kitemliststyleoption.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
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) { } |
