mirror of
https://github.com/wownero/wowlet.git
synced 2026-10-22 17:48:48 +02:00
26 lines
787 B
C++
26 lines
787 B
C++
// SPDX-License-Identifier: BSD-3-Clause
|
|
// Copyright (c) 2020-2021, The Monero Project.
|
|
|
|
#include "PasswordDialog.h"
|
|
#include "ui_PasswordDialog.h"
|
|
|
|
#include "utils/Icons.h"
|
|
|
|
PasswordDialog::PasswordDialog(const QString &walletName, bool incorrectPassword, QWidget *parent)
|
|
: WindowModalDialog(parent)
|
|
, ui(new Ui::PasswordDialog)
|
|
{
|
|
ui->setupUi(this);
|
|
|
|
this->setWindowIcon(icons()->icon("appicons/64x64.png"));
|
|
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() = default; |