diff options
| author | Méven Car <[email protected]> | 2023-02-23 12:29:20 +0100 |
|---|---|---|
| committer | Méven Car <[email protected]> | 2023-02-23 12:29:20 +0100 |
| commit | 7a682f5e9c22e2af73a31d6228f8c594e228650a (patch) | |
| tree | adf7bebd253cdff5a3ff1dd045c90775462e775f /src/kitemviews/private/kitemlistheaderwidget.h | |
| parent | 6e7a5760b4d6fc3244fbc0fae2fbce6201603fda (diff) | |
Fix header index are colIndex and not roleIndex
Diffstat (limited to 'src/kitemviews/private/kitemlistheaderwidget.h')
| -rw-r--r-- | src/kitemviews/private/kitemlistheaderwidget.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/kitemviews/private/kitemlistheaderwidget.h b/src/kitemviews/private/kitemlistheaderwidget.h index 05a5924e1..a522fa3a2 100644 --- a/src/kitemviews/private/kitemlistheaderwidget.h +++ b/src/kitemviews/private/kitemlistheaderwidget.h @@ -93,8 +93,8 @@ Q_SIGNALS: */ void sortRoleChanged(const QByteArray ¤t, const QByteArray &previous); - void columnUnHovered(int roleIndex); - void columnHovered(int roleIndex); + void columnUnHovered(int columnIndex); + void columnHovered(int columnIndex); protected: void mousePressEvent(QGraphicsSceneMouseEvent *event) override; @@ -118,7 +118,7 @@ private: void paintRole(QPainter *painter, const QByteArray &role, const QRectF &rect, int orderIndex, QWidget *widget = nullptr) const; void updatePressedRoleIndex(const QPointF &pos); - void updateHoveredRoleIndex(const QPointF &pos); + void updateHoveredIndex(const QPointF &pos); int roleIndexAt(const QPointF &pos) const; bool isAboveRoleGrip(const QPointF &pos, int roleIndex) const; bool isAbovePaddingGrip(const QPointF &pos, PaddingGrip paddingGrip) const; @@ -151,7 +151,7 @@ private: QHash<QByteArray, qreal> m_columnWidths; QHash<QByteArray, qreal> m_preferredColumnWidths; - int m_hoveredRoleIndex; + int m_hoveredIndex; int m_pressedRoleIndex; RoleOperation m_roleOperation; QPointF m_pressedMousePos; |
