Commit 5c793cb0 authored by Kurt Hindenburg's avatar Kurt Hindenburg
Browse files

Convert depreciated setWorldMatrix to setWorldTransform

This change matches what Qt was doing behind the scenes.

setWorldMatrix(const QMatrix &matrix, bool combine)
{
    setWorldTransform(QTransform(matrix), combine);
}

Tested with varies files in the konsole/tests folder.
parent e788b2a8
......@@ -1689,8 +1689,7 @@ void TerminalDisplay::drawContents(QPainter& paint, const QRect& rect)
}
//Apply text scaling matrix.
// TODO: setWorldMatrix is obsolete, change to setWorldTransform
paint.setWorldMatrix(textScale, true);
paint.setWorldTransform(QTransform(textScale), true);
//calculate the area in which the text will be drawn
QRect textArea = QRect(_contentRect.left() + contentsRect().left() + _fontWidth * x,
......@@ -1724,8 +1723,7 @@ void TerminalDisplay::drawContents(QPainter& paint, const QRect& rect)
_fixedFont = save__fixedFont;
//reset back to single-width, single-height _lines
// TODO: setWorldMatrix is obsolete, change to setWorldTransform
paint.setWorldMatrix(textScale.inverted(), true);
paint.setWorldTransform(QTransform(textScale.inverted()), true);
if (y < _lineProperties.size() - 1) {
//double-height _lines are represented by two adjacent _lines
......
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