Add resetCursorBlinkTimer() back again.

Apparently it was used by QtQuick1

Change-Id: Ia0cf8535cbfed9b09e151b887c243fb173ca300a
Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
This commit is contained in:
Jan Arve Saether 2012-11-15 11:10:55 +01:00 committed by The Qt Project
parent 90de0c4178
commit e2942d0a5b
2 changed files with 10 additions and 0 deletions

View File

@ -1483,6 +1483,15 @@ void QWidgetLineControl::setCursorBlinkPeriod(int msec)
m_blinkPeriod = msec;
}
void QWidgetLineControl::resetCursorBlinkTimer()
{
if (m_blinkPeriod == 0 || m_blinkTimer == 0)
return;
killTimer(m_blinkTimer);
m_blinkTimer = startTimer(m_blinkPeriod / 2);
m_blinkStatus = 1;
}
void QWidgetLineControl::timerEvent(QTimerEvent *event)
{
if (event->timerId() == m_blinkTimer) {

View File

@ -338,6 +338,7 @@ public:
int cursorBlinkPeriod() const { return m_blinkPeriod; }
void setCursorBlinkPeriod(int msec);
void resetCursorBlinkTimer();
bool cursorBlinkStatus() const { return m_blinkStatus; }