]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/kitemviews/kitemliststyleoption.cpp
Ported KIcon to QIcon
[dolphin.git] / src / kitemviews / kitemliststyleoption.cpp
index f26b220bc1380ed092b99c5e385babb67283ac25..edd6363c852195c13f3e46514d1104907eb60cb6 100644 (file)
 
 #include "kitemliststyleoption.h"
 
+#include <KIconLoader>
+
 KItemListStyleOption::KItemListStyleOption() :
     rect(),
     font(),
     fontMetrics(QFont()),
     palette(),
-    margin(0),
-    iconSize(0)
+    padding(-1),
+    horizontalMargin(-1),
+    verticalMargin(-1),
+    iconSize(-1),
+    extendedSelectionRegion(false),
+    maxTextLines(0),
+    maxTextWidth(0)
 {
 }
 
@@ -34,8 +41,13 @@ KItemListStyleOption::KItemListStyleOption(const KItemListStyleOption& other) :
     font(other.font),
     fontMetrics(other.fontMetrics),
     palette(other.palette),
-    margin(other.margin),
-    iconSize(other.iconSize)
+    padding(other.padding),
+    horizontalMargin(other.horizontalMargin),
+    verticalMargin(other.verticalMargin),
+    iconSize(other.iconSize),
+    extendedSelectionRegion(other.extendedSelectionRegion),
+    maxTextLines(other.maxTextLines),
+    maxTextWidth(other.maxTextWidth)
 {
 }