| 167 | } |
| 168 | |
| 169 | PasscodeBox::PasscodeBox( |
| 170 | QWidget*, |
| 171 | not_null<Main::Session*> session, |
| 172 | bool turningOff) |
| 173 | : _session(session) |
| 174 | , _api(&_session->mtp()) |
| 175 | , _textWidth(st::boxWidth - st::boxPadding.left() * 1.5) |
| 176 | , _turningOff(turningOff) |
| 177 | , _about(_textWidth) |
| 178 | , _oldPasscode(this, st::defaultInputField, tr::lng_passcode_enter_old()) |
| 179 | , _newPasscode( |
| 180 | this, |
| 181 | st::defaultInputField, |
| 182 | session->domain().local().hasLocalPasscode() |
| 183 | ? tr::lng_passcode_enter_new() |
| 184 | : tr::lng_passcode_enter_first()) |
| 185 | , _reenterPasscode(this, st::defaultInputField, tr::lng_passcode_confirm_new()) |
| 186 | , _passwordHint(this, st::defaultInputField, tr::lng_cloud_password_hint()) |
| 187 | , _recoverEmail(this, st::defaultInputField, tr::lng_cloud_password_email()) |
| 188 | , _recover(this, tr::lng_signin_recover(tr::now)) { |
| 189 | } |
| 190 | |
| 191 | PasscodeBox::PasscodeBox( |
| 192 | QWidget*, |
nothing calls this directly
no test coverage detected