Mercurial > octave-nkf
comparison libgui/qterminal/libqterminal/win32/QWinTerminalImpl.cpp @ 19879:29692bc97899
fix font in windows terminal when scaling is 150% or more (bug #41938)
* QWinTerminalImpl.cpp (updateConsoelSize): get font metrics from console
widget and not from the font object
author | Torsten <ttl@justmail.de> |
---|---|
date | Tue, 24 Feb 2015 13:53:02 +0100 |
parents | bd1369a2a651 |
children | 88233ac3f3ea |
comparison
equal
deleted
inserted
replaced
19878:a09471d938a5 | 19879:29692bc97899 |
---|---|
983 | 983 |
984 ////////////////////////////////////////////////////////////////////////////// | 984 ////////////////////////////////////////////////////////////////////////////// |
985 | 985 |
986 void QConsolePrivate::updateConsoleSize (bool sync, bool allow_smaller_width) | 986 void QConsolePrivate::updateConsoleSize (bool sync, bool allow_smaller_width) |
987 { | 987 { |
988 QFontMetrics fm (m_font); | 988 QFontMetrics fm = m_consoleView->fontMetrics (); |
989 QSize winSize = m_consoleView->size (); | 989 QSize winSize = m_consoleView->size (); |
990 | 990 |
991 m_charSize.rwidth () = fm.averageCharWidth (); | 991 m_charSize.rwidth () = fm.averageCharWidth (); |
992 m_charSize.rheight () = fm.lineSpacing (); | 992 m_charSize.rheight () = fm.lineSpacing (); |
993 | 993 |