diff options
| author | Serg Podtynnyi <[email protected]> | 2023-02-04 00:14:53 +0700 |
|---|---|---|
| committer | Serg Podtynnyi <[email protected]> | 2023-02-05 12:45:38 +0700 |
| commit | 38c34eeca315c7be58e65d4d3fb72aaf7b866719 (patch) | |
| tree | 886e53f20c9c43edc3eb7fe04789716a9bc98ebe /src/kitemviews/kitemliststyleoption.cpp | |
| parent | ffff8af851e3a386c44438337779d0ce7ca98a61 (diff) | |
Add clang-format and format code as in Frameworks
Diffstat (limited to 'src/kitemviews/kitemliststyleoption.cpp')
| -rw-r--r-- | src/kitemviews/kitemliststyleoption.cpp | 43 |
1 files changed, 17 insertions, 26 deletions
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); } |
