Ejemplo n.º 1
0
void MTPasswordCallback::runOne(const char * szDisplay, OTPassword & theOutput)
{
    if (NULL == szDisplay)
    {
        qDebug() << QString("MTPasswordCallback::runOne: Failure: szDisplay (telling you why to enter password) is NULL!");
        return;
    }

//    MTDlgPassword * pDlg = new MTDlgPassword(NULL, theOutput);
    MTDlgPassword * pDlg = new MTDlgPassword(Moneychanger::It(), theOutput);

    pDlg->setAttribute(Qt::WA_DeleteOnClose);

    QString qstrDisplay(szDisplay);
    pDlg->setDisplay(qstrDisplay);

    pDlg->exec();
}