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/kitemlistgroupheader.h | |
| parent | ffff8af851e3a386c44438337779d0ce7ca98a61 (diff) | |
Add clang-format and format code as in Frameworks
Diffstat (limited to 'src/kitemviews/kitemlistgroupheader.h')
| -rw-r--r-- | src/kitemviews/kitemlistgroupheader.h | 28 |
1 files changed, 13 insertions, 15 deletions
diff --git a/src/kitemviews/kitemlistgroupheader.h b/src/kitemviews/kitemlistgroupheader.h index 48af1e9e0..1522af0ce 100644 --- a/src/kitemviews/kitemlistgroupheader.h +++ b/src/kitemviews/kitemlistgroupheader.h @@ -28,17 +28,17 @@ class DOLPHIN_EXPORT KItemListGroupHeader : public QGraphicsWidget Q_OBJECT public: - explicit KItemListGroupHeader(QGraphicsWidget* parent = nullptr); + explicit KItemListGroupHeader(QGraphicsWidget *parent = nullptr); ~KItemListGroupHeader() override; - void setRole(const QByteArray& role); + void setRole(const QByteArray &role); QByteArray role() const; - void setData(const QVariant& data); + void setData(const QVariant &data); QVariant data() const; - void setStyleOption(const KItemListStyleOption& option); - const KItemListStyleOption& styleOption() const; + void setStyleOption(const KItemListStyleOption &option); + const KItemListStyleOption &styleOption() const; /** * Sets the scroll orientation that is used by the KItemListView. @@ -51,29 +51,29 @@ public: void setItemIndex(int index); int itemIndex() const; - void paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget = nullptr) override; + void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = nullptr) override; protected: - virtual void paintRole(QPainter* painter, const QRectF& roleBounds, const QColor& color) = 0; - virtual void paintSeparator(QPainter* painter, const QColor& color) = 0; + virtual void paintRole(QPainter *painter, const QRectF &roleBounds, const QColor &color) = 0; + virtual void paintSeparator(QPainter *painter, const QColor &color) = 0; /** * Is called after the role has been changed and allows the derived class * to react on this change. */ - virtual void roleChanged(const QByteArray& current, const QByteArray& previous); + virtual void roleChanged(const QByteArray ¤t, const QByteArray &previous); /** * Is called after the role has been changed and allows the derived class * to react on this change. */ - virtual void dataChanged(const QVariant& current, const QVariant& previous); + virtual void dataChanged(const QVariant ¤t, const QVariant &previous); /** * Is called after the style option has been changed and allows the derived class * to react on this change. */ - virtual void styleOptionChanged(const KItemListStyleOption& current, const KItemListStyleOption& previous); + virtual void styleOptionChanged(const KItemListStyleOption ¤t, const KItemListStyleOption &previous); /** * Is called after the scroll orientation has been changed and allows the derived class @@ -87,7 +87,7 @@ protected: */ virtual void itemIndexChanged(int current, int previous); - void resizeEvent(QGraphicsSceneResizeEvent* event) override; + void resizeEvent(QGraphicsSceneResizeEvent *event) override; virtual QPalette::ColorRole normalTextColorRole() const; virtual QPalette::ColorRole normalBaseColorRole() const; @@ -96,7 +96,7 @@ private: void updateCache(); void updateSize(); - static QColor mixedColor(const QColor& c1, const QColor& c2, int c1Percent = 50); + static QColor mixedColor(const QColor &c1, const QColor &c2, int c1Percent = 50); QColor textColor() const; QColor baseColor() const; @@ -114,5 +114,3 @@ private: QRectF m_roleBounds; }; #endif - - |
