1
0
mirror of https://github.com/Swordfish90/cool-retro-term.git synced 2025-09-25 06:32:43 +01:00

Fixed a couple of Qt 5.3 problems.

This commit is contained in:
Filippo Scognamiglio
2014-07-07 01:42:17 +02:00
parent 85c7d8ea97
commit 8ec688f1d9
3 changed files with 7 additions and 3 deletions

View File

@@ -393,7 +393,9 @@ void KTerminalDisplay::setVTFont(const QFont& f)
qDebug() << "Using an unsupported variable-width font in the terminal. This may produce display errors.";
}
if ( metrics.height() < height() && metrics.maxWidth() < width() )
// TODO For some reasons this is bugged with Qt 5.3
//if ( metrics.height() < height() && metrics.maxWidth() < width() )
if (font.pixelSize() > 0)
{
// hint that text should be drawn without anti-aliasing.
// depending on the user's font configuration, this may not be respected