QDateTimeEdit: update cursor blinking code to match new API

Update old, if-deffed out, code to match changed method
signatures.

Change-Id: If9751599c9446f8dbd554a41ab97f597258fa1c5
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
This commit is contained in:
Richard Moe Gustavsen 2017-06-26 14:15:09 +02:00
parent b8fd4e1a48
commit bb918db849

View File

@ -1075,7 +1075,7 @@ void QDateTimeEdit::keyPressEvent(QKeyEvent *event)
//hide cursor
d->edit->d_func()->setCursorVisible(false);
d->edit->d_func()->control->setCursorBlinkPeriod(0);
d->edit->d_func()->control->setBlinkingCursorEnabled(false);
d->setSelected(0);
}
}
@ -1096,7 +1096,7 @@ void QDateTimeEdit::keyPressEvent(QKeyEvent *event)
//hide cursor
d->edit->d_func()->setCursorVisible(false);
d->edit->d_func()->control->setCursorBlinkPeriod(0);
d->edit->d_func()->control->setBlinkingCursorEnabled(false);
d->setSelected(0);
oldCurrent = 0;
}