Commit 22d2943c authored by mae's avatar mae

Hide mouse cursor from the editor when typing.

parent ded5d6f3
......@@ -838,6 +838,9 @@ void BaseTextEditor::cleanWhitespace()
void BaseTextEditor::keyPressEvent(QKeyEvent *e)
{
viewport()->setCursor(Qt::BlankCursor);
QToolTip::hideText();
d->m_moveLineUndoHack = false;
d->clearVisibleCollapsedBlock();
......@@ -2728,6 +2731,8 @@ void BaseTextEditor::mouseMoveEvent(QMouseEvent *e)
d->m_blockSelectionExtraX = 0;
}
}
if (viewport()->cursor().shape() == Qt::BlankCursor)
viewport()->setCursor(Qt::IBeamCursor);
}
void BaseTextEditor::mousePressEvent(QMouseEvent *e)
......
Markdown is supported
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