]>
cloud.milkyroute.net Git - dolphin.git/blob - src/kitemviews/kitemliststyleoption.cpp
2 * SPDX-FileCopyrightText: 2011 Peter Penz <peter.penz19@gmail.com>
4 * SPDX-License-Identifier: GPL-2.0-or-later
7 #include "kitemliststyleoption.h"
9 KItemListStyleOption::KItemListStyleOption()
12 , fontMetrics(QFont())
15 , horizontalMargin(-1)
18 , extendedSelectionRegion(false)
24 KItemListStyleOption::~KItemListStyleOption()
28 bool KItemListStyleOption::operator==(const KItemListStyleOption
&other
) const
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
;
35 bool KItemListStyleOption::operator!=(const KItemListStyleOption
&other
) const
37 return !(*this == other
);