Commit 425f70ff authored by Kurt Hindenburg's avatar Kurt Hindenburg
Browse files

Change obsolete pos() to position()

Exact code change:
QPoint pos() const { return p.toPoint(); }
QPointF position() const { return p; }
parent 785fedbe
...@@ -2761,7 +2761,7 @@ void TerminalDisplay::wheelEvent(QWheelEvent* ev) ...@@ -2761,7 +2761,7 @@ void TerminalDisplay::wheelEvent(QWheelEvent* ev)
int charLine; int charLine;
int charColumn; int charColumn;
getCharacterPosition(ev->pos() , charLine , charColumn, !_usesMouseTracking); getCharacterPosition(ev->position().toPoint() , charLine , charColumn, !_usesMouseTracking);
const int steps = _scrollWheelState.consumeLegacySteps(ScrollState::DEFAULT_ANGLE_SCROLL_LINE); const int steps = _scrollWheelState.consumeLegacySteps(ScrollState::DEFAULT_ANGLE_SCROLL_LINE);
const int button = (steps > 0) ? 4 : 5; const int button = (steps > 0) ? 4 : 5;
for (int i = 0; i < abs(steps); ++i) { for (int i = 0; i < abs(steps); ++i) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment