MCPcopy Create free account
hub / github.com/KangLin/RabbitRemoteControl / slotLoadPassword

Method slotLoadPassword

Src/ParameterCompone/ParameterUser.cpp:413–427  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

411}
412
413void CParameterUser::slotLoadPassword()
414{
415#if HAVE_QTKEYCHAIN
416 qDebug(log) << Q_FUNC_INFO;
417 QKeychain::ReadPasswordJob* pReadJob = qobject_cast<QKeychain::ReadPasswordJob*>(sender());
418 if(!pReadJob) return;
419 QString key = pReadJob->key();
420 if (pReadJob->error()) {
421 qCritical(log) << "Fail: read key" << key << ";" << pReadJob->errorString();
422 return;
423 }
424 qDebug(log) << "Read key" << key << "succeeded.";
425 SetPassword(pReadJob->textData());
426#endif
427}
428
429void CParameterUser::slotLoadPassPhrase()
430{

Callers

nothing calls this directly

Calls 1

errorStringMethod · 0.80

Tested by

no test coverage detected