┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/kitemviews/kitemlistheader.h
diff options
context:
space:
mode:
authorSerg Podtynnyi <[email protected]>2023-02-04 00:14:53 +0700
committerSerg Podtynnyi <[email protected]>2023-02-05 12:45:38 +0700
commit38c34eeca315c7be58e65d4d3fb72aaf7b866719 (patch)
tree886e53f20c9c43edc3eb7fe04789716a9bc98ebe /src/kitemviews/kitemlistheader.h
parentffff8af851e3a386c44438337779d0ce7ca98a61 (diff)
Add clang-format and format code as in Frameworks
Diffstat (limited to 'src/kitemviews/kitemlistheader.h')
-rw-r--r--src/kitemviews/kitemlistheader.h23
1 files changed, 9 insertions, 14 deletions
diff --git a/src/kitemviews/kitemlistheader.h b/src/kitemviews/kitemlistheader.h
index 66223f0c7..04519f12c 100644
--- a/src/kitemviews/kitemlistheader.h
+++ b/src/kitemviews/kitemlistheader.h
@@ -41,8 +41,8 @@ public:
* the width only gets applied if KItemListHeader::automaticColumnResizing()
* has been turned off.
*/
- void setColumnWidth(const QByteArray& role, qreal width);
- qreal columnWidth(const QByteArray& role) const;
+ void setColumnWidth(const QByteArray &role, qreal width);
+ qreal columnWidth(const QByteArray &role) const;
/**
* Sets the widths of the columns for all roles. From a performance point of
@@ -51,12 +51,12 @@ public:
* Note that the widths only get applied if KItemListHeader::automaticColumnResizing()
* has been turned off.
*/
- void setColumnWidths(const QHash<QByteArray, qreal>& columnWidths);
+ void setColumnWidths(const QHash<QByteArray, qreal> &columnWidths);
/**
* @return The column width that is required to show the role unclipped.
*/
- qreal preferredColumnWidth(const QByteArray& role) const;
+ qreal preferredColumnWidth(const QByteArray &role) const;
/**
* Sets the width of the column *before* the first column.
@@ -72,27 +72,22 @@ Q_SIGNALS:
* Is emitted if the width of a column has been adjusted by the user with the mouse
* (no signal is emitted if KItemListHeader::setColumnWidth() is invoked).
*/
- void columnWidthChanged(const QByteArray& role,
- qreal currentWidth,
- qreal previousWidth);
+ void columnWidthChanged(const QByteArray &role, qreal currentWidth, qreal previousWidth);
/**
* Is emitted if the user has released the mouse button after adjusting the
* width of a visible role.
*/
- void columnWidthChangeFinished(const QByteArray& role,
- qreal currentWidth);
+ void columnWidthChangeFinished(const QByteArray &role, qreal currentWidth);
private:
- explicit KItemListHeader(KItemListView* listView);
+ explicit KItemListHeader(KItemListView *listView);
private:
- KItemListView* m_view;
- KItemListHeaderWidget* m_headerWidget;
+ KItemListView *m_view;
+ KItemListHeaderWidget *m_headerWidget;
friend class KItemListView; // Constructs the KItemListHeader instance
};
#endif
-
-