diff options
| author | Peter Penz <[email protected]> | 2011-08-08 23:41:18 +0200 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2011-08-09 16:22:36 +0200 |
| commit | 3957884bf2e44619a4ed35ba0ffead519988885b (patch) | |
| tree | d8a5bf1a015cc6001adb4afc5f0f1da721908a22 /src/kitemviews/kitemliststyleoption.cpp | |
| parent | 4692eb7c96f57328479862c0d17d7945b4e87188 (diff) | |
Improvements for selections, smooth scrolling, tooltips and info-panel
Diffstat (limited to 'src/kitemviews/kitemliststyleoption.cpp')
| -rw-r--r-- | src/kitemviews/kitemliststyleoption.cpp | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/src/kitemviews/kitemliststyleoption.cpp b/src/kitemviews/kitemliststyleoption.cpp index 261dfc07b..f26b220bc 100644 --- a/src/kitemviews/kitemliststyleoption.cpp +++ b/src/kitemviews/kitemliststyleoption.cpp @@ -20,16 +20,23 @@ #include "kitemliststyleoption.h" KItemListStyleOption::KItemListStyleOption() : - QStyleOption(QStyleOption::Version, QStyleOption::SO_CustomBase + 1) + rect(), + font(), + fontMetrics(QFont()), + palette(), + margin(0), + iconSize(0) { } KItemListStyleOption::KItemListStyleOption(const KItemListStyleOption& other) : - QStyleOption(other) + rect(other.rect), + font(other.font), + fontMetrics(other.fontMetrics), + palette(other.palette), + margin(other.margin), + iconSize(other.iconSize) { - margin = other.margin; - iconSize = other.iconSize; - font = other.font; } KItemListStyleOption::~KItemListStyleOption() |
