MCPcopy Create free account
hub / github.com/altairwei/WizNotePlus / cipherError

Method cipherError

src/WizUserCipherForm.cpp:98–116  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

96}*/
97
98void 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
118void WizUserCipherForm::cipherCorrect()
119{

Callers 1

onCipherCheckRequestMethod · 0.80

Calls 3

sizeMethod · 0.80
selectAllMethod · 0.80
QRectClass · 0.50

Tested by

no test coverage detected