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:
parent
90de0c4178
commit
e2942d0a5b
@ -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) {
|
||||
|
@ -338,6 +338,7 @@ public:
|
||||
|
||||
int cursorBlinkPeriod() const { return m_blinkPeriod; }
|
||||
void setCursorBlinkPeriod(int msec);
|
||||
void resetCursorBlinkTimer();
|
||||
|
||||
bool cursorBlinkStatus() const { return m_blinkStatus; }
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user