File indexing completed on 2024-04-28 05:45:07
0001 /* 0002 * SPDX-FileCopyrightText: 2011 Peter Penz <peter.penz19@gmail.com> 0003 * 0004 * SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #include "kitemliststyleoption.h" 0008 0009 KItemListStyleOption::KItemListStyleOption() 0010 : rect() 0011 , font() 0012 , fontMetrics(QFont()) 0013 , palette() 0014 , padding(-1) 0015 , horizontalMargin(-1) 0016 , verticalMargin(-1) 0017 , iconSize(-1) 0018 , extendedSelectionRegion(false) 0019 , maxTextLines(0) 0020 , maxTextWidth(0) 0021 { 0022 } 0023 0024 KItemListStyleOption::~KItemListStyleOption() 0025 { 0026 } 0027 0028 bool KItemListStyleOption::operator==(const KItemListStyleOption &other) const 0029 { 0030 return rect == other.rect && font == other.font && fontMetrics == other.fontMetrics && palette == other.palette && padding == other.padding 0031 && horizontalMargin == other.horizontalMargin && verticalMargin == other.verticalMargin && iconSize == other.iconSize 0032 && extendedSelectionRegion == other.extendedSelectionRegion && maxTextLines == other.maxTextLines && maxTextWidth == other.maxTextWidth; 0033 } 0034 0035 bool KItemListStyleOption::operator!=(const KItemListStyleOption &other) const 0036 { 0037 return !(*this == other); 0038 }