# HG changeset patch # User John W. Eaton # Date 1594702446 14400 # Node ID 1fca7db5994ea450e3b70550a01c56e93fbdeee1 # Parent 7f233261e268bff4a0797d1b4a8b8849f70f3385 avoid deprecated Qt QPainter functions * TerminalView.cpp: Use QPainter::transform and QPainter::resetTransform functions instead of QPainter::matrix and QPainter::resetMatrix. diff -r 7f233261e268 -r 1fca7db5994e libgui/qterminal/libqterminal/unix/TerminalView.cpp --- a/libgui/qterminal/libqterminal/unix/TerminalView.cpp Tue Jul 14 00:48:10 2020 -0400 +++ b/libgui/qterminal/libqterminal/unix/TerminalView.cpp Tue Jul 14 00:54:06 2020 -0400 @@ -1236,7 +1236,7 @@ // transformation has been applied to the painter. this ensures that // painting does actually start from textArea.topLeft() // (instead of textArea.topLeft() * painter-scale) - QMatrix inverted = paint.matrix().inverted(); + QMatrix inverted = paint.transform().inverted(); textArea.moveCenter( inverted.map(textArea.center()) ); @@ -1250,7 +1250,7 @@ _fixedFont = save__fixedFont; //reset back to single-width, single-height _lines - paint.resetMatrix(); + paint.resetTransform(); if (y < _lineProperties.size()-1) {