Changeset View
Changeset View
Standalone View
Standalone View
src/kitemviews/kitemliststyleoption.cpp
Show All 29 Lines | 23 | KItemListStyleOption::KItemListStyleOption() : | |||
---|---|---|---|---|---|
30 | verticalMargin(-1), | 30 | verticalMargin(-1), | ||
31 | iconSize(-1), | 31 | iconSize(-1), | ||
32 | extendedSelectionRegion(false), | 32 | extendedSelectionRegion(false), | ||
33 | maxTextLines(0), | 33 | maxTextLines(0), | ||
34 | maxTextWidth(0) | 34 | maxTextWidth(0) | ||
35 | { | 35 | { | ||
36 | } | 36 | } | ||
37 | 37 | | |||
38 | KItemListStyleOption::KItemListStyleOption(const KItemListStyleOption& other) : | | |||
39 | rect(other.rect), | | |||
40 | font(other.font), | | |||
41 | fontMetrics(other.fontMetrics), | | |||
42 | palette(other.palette), | | |||
43 | padding(other.padding), | | |||
44 | horizontalMargin(other.horizontalMargin), | | |||
45 | verticalMargin(other.verticalMargin), | | |||
46 | iconSize(other.iconSize), | | |||
47 | extendedSelectionRegion(other.extendedSelectionRegion), | | |||
48 | maxTextLines(other.maxTextLines), | | |||
49 | maxTextWidth(other.maxTextWidth) | | |||
50 | { | | |||
51 | } | | |||
52 | | ||||
53 | KItemListStyleOption::~KItemListStyleOption() | 38 | KItemListStyleOption::~KItemListStyleOption() | ||
54 | { | 39 | { | ||
55 | } | 40 | } | ||
56 | 41 | | |||
57 | bool KItemListStyleOption::operator==(const KItemListStyleOption& other) const | 42 | bool KItemListStyleOption::operator==(const KItemListStyleOption& other) const | ||
58 | { | 43 | { | ||
59 | return rect == other.rect | 44 | return rect == other.rect | ||
60 | && font == other.font | 45 | && font == other.font | ||
Show All 15 Lines |