void LxQt::Wallet::changePassWordDialog::ShowUI_1() { this->setWindowTitle( tr( "Create a new wallet" ) ) ; m_ui->pushButtonChange->setText( tr( "Create" ) ) ; connect( m_ui->pushButtonChange,SIGNAL( clicked() ),this,SLOT( create() ) ) ; connect( m_ui->pushButtonOK,SIGNAL( clicked() ),this,SLOT( ok_1() ) ) ; m_banner = m_ui->textEdit_2->toHtml().arg( m_applicationName ).arg( m_walletName ) ; m_ui->label->setText( m_banner ) ; m_ui->label_2->setEnabled( false ) ; m_ui->lineEditCurrentPassWord->setEnabled( false ) ; this->show() ; }
void LXQt::Wallet::changePassWordDialog::ShowUI(std::function< void(const QString &, bool) > && create) { m_create = std::move(create); this->setWindowTitle(tr("Create a new wallet")); m_ui->pushButtonChange->setText(tr("Create")); connect(m_ui->pushButtonChange, SIGNAL(clicked()), this, SLOT(create())); connect(m_ui->pushButtonOK, SIGNAL(clicked()), this, SLOT(ok_1())); m_banner = m_ui->textEdit_2->toHtml().arg(m_applicationName, m_walletName); m_ui->label->setText(m_banner); m_ui->label_2->setEnabled(false); m_ui->lineEditCurrentPassWord->setEnabled(false); this->show(); }