forked from qt-creator/qt-creator
mac fix for parenthesis matching
This commit is contained in:
@@ -2135,7 +2135,7 @@ void BaseTextEditor::paintEvent(QPaintEvent *e)
|
||||
}
|
||||
}
|
||||
|
||||
if (d->m_animator) {
|
||||
if (d->m_animator && d->m_animator->isRunning()) {
|
||||
QTextCursor cursor = textCursor();
|
||||
cursor.setPosition(d->m_animator->position());
|
||||
d->m_animator->draw(&painter, cursorRect(cursor).topLeft());
|
||||
@@ -3420,6 +3420,11 @@ void BaseTextEditorAnimator::draw(QPainter *p, const QPointF &pos)
|
||||
p->drawText(r, m_text);
|
||||
}
|
||||
|
||||
bool BaseTextEditorAnimator::isRunning() const
|
||||
{
|
||||
return m_timeline->state() == QTimeLine::Running;
|
||||
}
|
||||
|
||||
QRectF BaseTextEditorAnimator::rect() const
|
||||
{
|
||||
QFont f = m_font;
|
||||
|
||||
Reference in New Issue
Block a user