From 03415d90783979f8e51880b7950721985fee29bf Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Wed, 8 Feb 2012 17:45:22 +0100 Subject: Layout optimizations - Differ internally between margins and paddings - Add a small padding in the icons-view and the compact-views - Optimize the width of the icons-view if previews are shown --- src/kitemviews/kitemliststyleoption.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/kitemviews/kitemliststyleoption.cpp') diff --git a/src/kitemviews/kitemliststyleoption.cpp b/src/kitemviews/kitemliststyleoption.cpp index 83af31202..5266ef6bd 100644 --- a/src/kitemviews/kitemliststyleoption.cpp +++ b/src/kitemviews/kitemliststyleoption.cpp @@ -26,7 +26,9 @@ KItemListStyleOption::KItemListStyleOption() : font(), fontMetrics(QFont()), palette(), - margin(0), + padding(0), + horizontalMargin(0), + verticalMargin(0), iconSize(KIconLoader::SizeMedium) { } @@ -36,7 +38,9 @@ KItemListStyleOption::KItemListStyleOption(const KItemListStyleOption& other) : font(other.font), fontMetrics(other.fontMetrics), palette(other.palette), - margin(other.margin), + padding(other.padding), + horizontalMargin(other.horizontalMargin), + verticalMargin(other.verticalMargin), iconSize(other.iconSize) { } -- cgit v1.3.1