X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/blobdiff_plain/6072005ddce81b456fdcf2e77d5156a1d86f3686..f1da070fd5845dbbdd5e20addffafe8c9929b3c9:/src/kitemviews/kitemliststyleoption.cpp diff --git a/src/kitemviews/kitemliststyleoption.cpp b/src/kitemviews/kitemliststyleoption.cpp index 6e4aaa96e..7ca6bd1d5 100644 --- a/src/kitemviews/kitemliststyleoption.cpp +++ b/src/kitemviews/kitemliststyleoption.cpp @@ -6,19 +6,18 @@ #include "kitemliststyleoption.h" - -KItemListStyleOption::KItemListStyleOption() : - rect(), - font(), - fontMetrics(QFont()), - palette(), - padding(-1), - horizontalMargin(-1), - verticalMargin(-1), - iconSize(-1), - extendedSelectionRegion(false), - maxTextLines(0), - maxTextWidth(0) +KItemListStyleOption::KItemListStyleOption() + : rect() + , font() + , fontMetrics(QFont()) + , palette() + , padding(-1) + , horizontalMargin(-1) + , verticalMargin(-1) + , iconSize(-1) + , extendedSelectionRegion(false) + , maxTextLines(0) + , maxTextWidth(0) { } @@ -26,22 +25,14 @@ KItemListStyleOption::~KItemListStyleOption() { } -bool KItemListStyleOption::operator==(const KItemListStyleOption& other) const +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; + 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 +bool KItemListStyleOption::operator!=(const KItemListStyleOption &other) const { return !(*this == other); }