Commit 3aada52d authored by Robert Knight's avatar Robert Knight
Browse files

Forward port fix for #139225.

svn path=/branches/work/konsole-split-view/; revision=616765
parent 213fb02c
......@@ -317,11 +317,17 @@ void TEWidget::fontChange(const QFont &)
void TEWidget::setVTFont(const QFont& f)
{
QFont font = f;
if (!s_antialias)
font.setStyleStrategy( QFont::NoAntialias );
QFontMetrics metrics(font);
if ( metrics.height() < height() && metrics.maxWidth() < width() )
{
if (!s_antialias)
font.setStyleStrategy( QFont::NoAntialias );
QFrame::setFont(font);
fontChange(font);
QFrame::setFont(font);
fontChange(font);
}
}
void TEWidget::setFont(const QFont &)
......
Supports Markdown
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