┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/kitemviews/kitemliststyleoption.cpp
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2012-02-08 17:45:22 +0100
committerPeter Penz <[email protected]>2012-02-08 17:48:32 +0100
commit03415d90783979f8e51880b7950721985fee29bf (patch)
tree2e38e2cddbc293f1fa3be44729a079bf03d4ec45 /src/kitemviews/kitemliststyleoption.cpp
parent3c83d8f14defbec5f09aeeb78de3885535d2dc71 (diff)
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
Diffstat (limited to 'src/kitemviews/kitemliststyleoption.cpp')
-rw-r--r--src/kitemviews/kitemliststyleoption.cpp8
1 files changed, 6 insertions, 2 deletions
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)
{
}