X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/blobdiff_plain/d3839617193e92463806580699caa595c892b8a6..e018ecafca79a73f1e9d76c577b9529fc3a7ae03:/src/kitemviews/kitemlistheader.h diff --git a/src/kitemviews/kitemlistheader.h b/src/kitemviews/kitemlistheader.h index e2653e41e..d84832dab 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,48 +51,44 @@ public: * Note that the widths only get applied if KItemListHeader::automaticColumnResizing() * has been turned off. */ - void setColumnWidths(const QHash& columnWidths); + void setColumnWidths(const QHash &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. + * Sets the widths of the columns *before* the first column and *after* the last column. * This is intended to facilitate an empty region for deselection in the main viewport. */ - void setLeadingPadding(qreal width); - qreal leadingPadding() const; + void setSidePadding(qreal leftPaddingWidth, qreal rightPaddingWidth); + qreal leftPadding() const; + qreal rightPadding() const; Q_SIGNALS: - void leadingPaddingChanged(qreal width); + void sidePaddingChanged(qreal leftPaddingWidth, qreal rightPaddingWidth); /** * 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 - -