]> cloud.milkyroute.net Git - dolphin.git/blob - src/kitemviews/kitemliststyleoption.cpp
GIT_SILENT Update Appstream for new release
[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 KItemListStyleOption::KItemListStyleOption()
10 : rect()
11 , font()
12 , fontMetrics(QFont())
13 , palette()
14 , padding(-1)
15 , horizontalMargin(-1)
16 , verticalMargin(-1)
17 , iconSize(-1)
18 , extendedSelectionRegion(false)
19 , maxTextLines(0)
20 , maxTextWidth(0)
21 {
22 }
23
24 KItemListStyleOption::~KItemListStyleOption()
25 {
26 }
27
28 bool KItemListStyleOption::operator==(const KItemListStyleOption &other) const
29 {
30 return rect == other.rect && font == other.font && fontMetrics == other.fontMetrics && palette == other.palette && padding == other.padding
31 && horizontalMargin == other.horizontalMargin && verticalMargin == other.verticalMargin && iconSize == other.iconSize
32 && extendedSelectionRegion == other.extendedSelectionRegion && maxTextLines == other.maxTextLines && maxTextWidth == other.maxTextWidth;
33 }
34
35 bool KItemListStyleOption::operator!=(const KItemListStyleOption &other) const
36 {
37 return !(*this == other);
38 }