blob: 6e4aaa96eecfaef86646375c996af98b54ce3cb2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
/*
* SPDX-FileCopyrightText: 2011 Peter Penz <[email protected]>
*
* SPDX-License-Identifier: GPL-2.0-or-later
*/
#include "kitemliststyleoption.h"
KItemListStyleOption::KItemListStyleOption() :
rect(),
font(),
fontMetrics(QFont()),
palette(),
padding(-1),
horizontalMargin(-1),
verticalMargin(-1),
iconSize(-1),
extendedSelectionRegion(false),
maxTextLines(0),
maxTextWidth(0)
{
}
KItemListStyleOption::~KItemListStyleOption()
{
}
bool KItemListStyleOption::operator==(const KItemListStyleOption& other) const
{
return rect == other.rect
&& font == other.font
&& fontMetrics == other.fontMetrics
&& palette == other.palette
&& padding == other.padding
&& horizontalMargin == other.horizontalMargin
&& verticalMargin == other.verticalMargin
&& iconSize == other.iconSize
&& extendedSelectionRegion == other.extendedSelectionRegion
&& maxTextLines == other.maxTextLines
&& maxTextWidth == other.maxTextWidth;
}
bool KItemListStyleOption::operator!=(const KItemListStyleOption& other) const
{
return !(*this == other);
}
|