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