Terminal: Fix mouse selection

Previously m_selection was not correctly ordered such that start < end.
This patch fixes that and also adds optional debug visualizations to aid
in debugging / validating the selection.

Change-Id: I9b0d2fcd917f39eeb5082bc374796fed91521c7c
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
This commit is contained in:
Marcus Tillmanns
2023-03-03 10:37:38 +01:00
committed by Cristian Adam
parent 1d6c161124
commit dc4ec494b3
2 changed files with 51 additions and 6 deletions

View File

@@ -103,6 +103,7 @@ protected:
qreal topMargin() const;
QPoint viewportToGlobal(QPoint p) const;
QPoint globalToViewport(QPoint p) const;
QPoint globalToGrid(QPoint p) const;
int textLineFromPixel(int y) const;