mirror of
https://git.wownero.com/wowlet/wowlet.git
synced 2024-08-15 01:03:14 +00:00
27 lines
693 B
C++
27 lines
693 B
C++
|
// SPDX-License-Identifier: BSD-3-Clause
|
||
|
// Copyright (c) 2020, The Monero Project.
|
||
|
|
||
|
#include "passworddialog.h"
|
||
|
#include "ui_passworddialog.h"
|
||
|
|
||
|
PasswordDialog::PasswordDialog(QWidget *parent, const QString &walletName, bool incorrectPassword)
|
||
|
: QDialog(parent)
|
||
|
, ui(new Ui::PasswordDialog)
|
||
|
{
|
||
|
ui->setupUi(this);
|
||
|
|
||
|
ui->label_wallet->setText(QString("Please enter password for wallet: %1").arg(walletName));
|
||
|
ui->label_incorrectPassword->setVisible(incorrectPassword);
|
||
|
|
||
|
connect(ui->buttonBox, &QDialogButtonBox::accepted, [this]{
|
||
|
password = ui->line_password->text();
|
||
|
});
|
||
|
|
||
|
this->adjustSize();
|
||
|
}
|
||
|
|
||
|
PasswordDialog::~PasswordDialog()
|
||
|
{
|
||
|
delete ui;
|
||
|
}
|