diff options
author | Christian Stenger <christian.stenger@qt.io> | 2024-02-26 10:20:18 +0100 |
---|---|---|
committer | Christian Stenger <christian.stenger@qt.io> | 2024-02-26 13:22:21 +0000 |
commit | dafb8f2231694abae6cb573e5448462c2273acc0 (patch) | |
tree | a468a6abe76ea945b2a6d2a0c8edcde1927a19e4 | |
parent | e8bc1fa78e7d4eef23ed8912d3a7b72a244f7186 (diff) |
Axivion: Fix toggling sort
If the horizontal scroll bar is not at position 0 we got the
wrong offset for the position of the column.
Change-Id: Id333584f9d509b67eeef39bc7966f095b577e0fe
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
-rw-r--r-- | src/plugins/axivion/issueheaderview.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/axivion/issueheaderview.cpp b/src/plugins/axivion/issueheaderview.cpp index ceb2d520af..3f8efd86c6 100644 --- a/src/plugins/axivion/issueheaderview.cpp +++ b/src/plugins/axivion/issueheaderview.cpp @@ -61,7 +61,7 @@ void IssueHeaderView::mousePressEvent(QMouseEvent *event) if (y > 1 && y < height() - 2) { // TODO improve const int pos = position.x(); const int logical = logicalIndexAt(pos); - const int end = sectionPosition(logical) + sectionSize(logical); + const int end = sectionViewportPosition(logical) + sectionSize(logical); const int start = end - ICON_SIZE - 2; m_maybeToggleSort = start < pos && end > pos; } |