changeset 28573:1fca7db5994e

avoid deprecated Qt QPainter functions * TerminalView.cpp: Use QPainter::transform and QPainter::resetTransform functions instead of QPainter::matrix and QPainter::resetMatrix.
author John W. Eaton <jwe@octave.org>
date Tue, 14 Jul 2020 00:54:06 -0400
parents 7f233261e268
children 522be74908f5
files libgui/qterminal/libqterminal/unix/TerminalView.cpp
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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)
             {