X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/blobdiff_plain/8679115552ec65ccfc6cbc1db68414d80e3a081b..e78fe03294973c20d70c839af1e9944c6b97faaf:/src/kitemviews/kitemliststyleoption.cpp diff --git a/src/kitemviews/kitemliststyleoption.cpp b/src/kitemviews/kitemliststyleoption.cpp index 1ebcad141..84054aaac 100644 --- a/src/kitemviews/kitemliststyleoption.cpp +++ b/src/kitemviews/kitemliststyleoption.cpp @@ -35,21 +35,26 @@ KItemListStyleOption::KItemListStyleOption() : { } -KItemListStyleOption::KItemListStyleOption(const KItemListStyleOption& other) : - 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) +KItemListStyleOption::~KItemListStyleOption() { } -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); }