MCPcopy Create free account
hub / github.com/TDesktop-x64/tdesktop / PasscodeBox

Method PasscodeBox

Telegram/SourceFiles/boxes/passcode_box.cpp:169–189  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

167}
168
169PasscodeBox::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
191PasscodeBox::PasscodeBox(
192 QWidget*,

Callers

nothing calls this directly

Calls 3

hasLocalPasscodeMethod · 0.80
isEmptyMethod · 0.45
setTextMethod · 0.45

Tested by

no test coverage detected