| 96 | }*/ |
| 97 | |
| 98 | void WizUserCipherForm::cipherError() |
| 99 | { |
| 100 | QPoint pos = ui->editUserCipher->pos(); |
| 101 | m_animation->setDuration(500); |
| 102 | m_animation->setEasingCurve(QEasingCurve::InOutQuad); |
| 103 | m_animation->setStartValue(QPoint(pos.x() + 5, pos.y())); |
| 104 | m_animation->setEndValue(QPoint(pos.x() - 5, pos.y())); |
| 105 | m_animation->start(); |
| 106 | |
| 107 | m_animation->setDuration(250); |
| 108 | m_animation->setEasingCurve(QEasingCurve::InOutQuad); |
| 109 | m_animation->setStartValue(QPoint(pos.x() - 5, pos.y())); |
| 110 | m_animation->setEndValue(pos); |
| 111 | m_animation->start(); |
| 112 | |
| 113 | ui->editUserCipher->setGeometry(QRect(pos, ui->editUserCipher->size())); |
| 114 | ui->editUserCipher->selectAll(); |
| 115 | ui->editUserCipher->setFocus(); |
| 116 | } |
| 117 | |
| 118 | void WizUserCipherForm::cipherCorrect() |
| 119 | { |
no test coverage detected