Allow full cursor height (it is not chopped when line spacing is not zero). This fixes issues with misbehaving fonts.

This commit is contained in:
Filippo Scognamiglio
2014-12-12 02:18:56 +01:00
parent 4f65e1c42b
commit fb04792ae3
2 changed files with 7 additions and 1 deletions
+2 -1
View File
@@ -345,6 +345,7 @@ TerminalDisplay::TerminalDisplay(QQuickItem *parent)
,mMotionAfterPasting(NoMoveScreenWindow)
,m_font("Monospace", 12)
,m_color_role(QPalette::Background)
,m_full_cursor_height(false)
{
// terminal applications are not designed with Right-To-Left in mind,
// so the layout is forced to Left-To-Right
@@ -656,7 +657,7 @@ void TerminalDisplay::drawCursor(QPainter& painter,
bool& invertCharacterColor)
{
QRect cursorRect = rect;
cursorRect.setHeight(_fontHeight - _lineSpacing - 1);
cursorRect.setHeight(_fontHeight - ((m_full_cursor_height) ? 0 : _lineSpacing) - 1);
if (!_cursorBlinking)
{