|
|
|
|
@ -1460,15 +1460,10 @@ void TerminalDisplay::blinkTextEvent() |
|
|
|
|
update(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
QRect TerminalDisplay::imageToWidget(const QRect& imageArea) const |
|
|
|
|
void TerminalDisplay::blinkCursorEvent() |
|
|
|
|
{ |
|
|
|
|
QRect result; |
|
|
|
|
result.setLeft(_leftMargin + _fontWidth * imageArea.left()); |
|
|
|
|
result.setTop(_topMargin + _fontHeight * imageArea.top()); |
|
|
|
|
result.setWidth(_fontWidth * imageArea.width()); |
|
|
|
|
result.setHeight(_fontHeight * imageArea.height()); |
|
|
|
|
|
|
|
|
|
return result; |
|
|
|
|
_cursorBlinking = !_cursorBlinking; |
|
|
|
|
updateCursor(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void TerminalDisplay::updateCursor() |
|
|
|
|
@ -1477,10 +1472,15 @@ void TerminalDisplay::updateCursor() |
|
|
|
|
update(cursorRect); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void TerminalDisplay::blinkCursorEvent() |
|
|
|
|
QRect TerminalDisplay::imageToWidget(const QRect& imageArea) const |
|
|
|
|
{ |
|
|
|
|
_cursorBlinking = !_cursorBlinking; |
|
|
|
|
updateCursor(); |
|
|
|
|
QRect result; |
|
|
|
|
result.setLeft(_leftMargin + _fontWidth * imageArea.left()); |
|
|
|
|
result.setTop(_topMargin + _fontHeight * imageArea.top()); |
|
|
|
|
result.setWidth(_fontWidth * imageArea.width()); |
|
|
|
|
result.setHeight(_fontHeight * imageArea.height()); |
|
|
|
|
|
|
|
|
|
return result; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/* ------------------------------------------------------------------------- */ |
|
|
|
|
|