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();
|
QTextCursor cursor = textCursor();
|
||||||
cursor.setPosition(d->m_animator->position());
|
cursor.setPosition(d->m_animator->position());
|
||||||
d->m_animator->draw(&painter, cursorRect(cursor).topLeft());
|
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);
|
p->drawText(r, m_text);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool BaseTextEditorAnimator::isRunning() const
|
||||||
|
{
|
||||||
|
return m_timeline->state() == QTimeLine::Running;
|
||||||
|
}
|
||||||
|
|
||||||
QRectF BaseTextEditorAnimator::rect() const
|
QRectF BaseTextEditorAnimator::rect() const
|
||||||
{
|
{
|
||||||
QFont f = m_font;
|
QFont f = m_font;
|
||||||
|
|||||||
@@ -239,6 +239,8 @@ public:
|
|||||||
|
|
||||||
void finish();
|
void finish();
|
||||||
|
|
||||||
|
bool isRunning() const;
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
void updateRequest(int position, QRectF rect);
|
void updateRequest(int position, QRectF rect);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user