mirror of
https://github.com/feather-wallet/feather.git
synced 2024-11-17 09:47:36 +00:00
Dialogs: move destructor to bottom
This commit is contained in:
parent
6921d7b1a7
commit
482ad9cd7e
6 changed files with 16 additions and 17 deletions
|
@ -25,8 +25,6 @@ ContactsDialog::ContactsDialog(QWidget *parent, const QString &address, const QS
|
||||||
this->adjustSize();
|
this->adjustSize();
|
||||||
}
|
}
|
||||||
|
|
||||||
ContactsDialog::~ContactsDialog() = default;
|
|
||||||
|
|
||||||
QString ContactsDialog::getAddress() {
|
QString ContactsDialog::getAddress() {
|
||||||
return m_address;
|
return m_address;
|
||||||
}
|
}
|
||||||
|
@ -34,3 +32,5 @@ QString ContactsDialog::getAddress() {
|
||||||
QString ContactsDialog::getName() {
|
QString ContactsDialog::getName() {
|
||||||
return m_name;
|
return m_name;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ContactsDialog::~ContactsDialog() = default;
|
|
@ -40,8 +40,6 @@ PasswordChangeDialog::PasswordChangeDialog(QWidget *parent, Wallet *wallet)
|
||||||
this->adjustSize();
|
this->adjustSize();
|
||||||
}
|
}
|
||||||
|
|
||||||
PasswordChangeDialog::~PasswordChangeDialog() = default;
|
|
||||||
|
|
||||||
void PasswordChangeDialog::passwordsMatch() {
|
void PasswordChangeDialog::passwordsMatch() {
|
||||||
bool match = ui->lineEdit_newPassword->text() == ui->lineEdit_confirmPassword->text();
|
bool match = ui->lineEdit_newPassword->text() == ui->lineEdit_confirmPassword->text();
|
||||||
ui->btn_OK->setEnabled(match);
|
ui->btn_OK->setEnabled(match);
|
||||||
|
@ -67,3 +65,5 @@ void PasswordChangeDialog::setPassword() {
|
||||||
QMessageBox::warning(this, "Error", QString("Error: %1").arg(m_wallet->errorString()));
|
QMessageBox::warning(this, "Error", QString("Error: %1").arg(m_wallet->errorString()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
PasswordChangeDialog::~PasswordChangeDialog() = default;
|
|
@ -27,8 +27,6 @@ QrCodeDialog::QrCodeDialog(QWidget *parent, const QrCode &qrCode, const QString
|
||||||
this->adjustSize();
|
this->adjustSize();
|
||||||
}
|
}
|
||||||
|
|
||||||
QrCodeDialog::~QrCodeDialog() = default;
|
|
||||||
|
|
||||||
void QrCodeDialog::setQrCode(const QrCode &qrCode) {
|
void QrCodeDialog::setQrCode(const QrCode &qrCode) {
|
||||||
m_pixmap = qrCode.toPixmap(1).scaled(500, 500, Qt::KeepAspectRatio);
|
m_pixmap = qrCode.toPixmap(1).scaled(500, 500, Qt::KeepAspectRatio);
|
||||||
ui->QrCode->setPixmap(m_pixmap);
|
ui->QrCode->setPixmap(m_pixmap);
|
||||||
|
@ -50,3 +48,5 @@ void QrCodeDialog::saveImage() {
|
||||||
m_pixmap.save(&file, "PNG");
|
m_pixmap.save(&file, "PNG");
|
||||||
QMessageBox::information(this, "Information", "QR code saved to file");
|
QMessageBox::information(this, "Information", "QR code saved to file");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QrCodeDialog::~QrCodeDialog() = default;
|
|
@ -227,4 +227,3 @@ TxProof TxProofDialog::getProof() {
|
||||||
}
|
}
|
||||||
|
|
||||||
TxProofDialog::~TxProofDialog() = default;
|
TxProofDialog::~TxProofDialog() = default;
|
||||||
|
|
||||||
|
|
|
@ -53,8 +53,6 @@ VerifyProofDialog::VerifyProofDialog(Wallet *wallet, QWidget *parent)
|
||||||
ui->input_formattedProof->setFont(ModelUtils::getMonospaceFont());
|
ui->input_formattedProof->setFont(ModelUtils::getMonospaceFont());
|
||||||
}
|
}
|
||||||
|
|
||||||
VerifyProofDialog::~VerifyProofDialog() = default;
|
|
||||||
|
|
||||||
void VerifyProofDialog::checkProof() {
|
void VerifyProofDialog::checkProof() {
|
||||||
switch (ui->tabWidget->currentIndex()) {
|
switch (ui->tabWidget->currentIndex()) {
|
||||||
case 0:
|
case 0:
|
||||||
|
@ -171,3 +169,5 @@ void VerifyProofDialog::proofStatus(bool success, const QString &message) {
|
||||||
: QMessageBox::warning(this, "Warning", message);
|
: QMessageBox::warning(this, "Warning", message);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
VerifyProofDialog::~VerifyProofDialog() = default;
|
|
@ -27,10 +27,10 @@ WalletInfoDialog::WalletInfoDialog(QSharedPointer<AppContext> ctx, QWidget *pare
|
||||||
this->adjustSize();
|
this->adjustSize();
|
||||||
}
|
}
|
||||||
|
|
||||||
WalletInfoDialog::~WalletInfoDialog() = default;
|
|
||||||
|
|
||||||
void WalletInfoDialog::openWalletDir() {
|
void WalletInfoDialog::openWalletDir() {
|
||||||
QFileInfo file(m_ctx->wallet->keysPath());
|
QFileInfo file(m_ctx->wallet->keysPath());
|
||||||
|
|
||||||
QDesktopServices::openUrl(QUrl(QString("file://%1").arg(file.absolutePath()), QUrl::TolerantMode));
|
QDesktopServices::openUrl(QUrl(QString("file://%1").arg(file.absolutePath()), QUrl::TolerantMode));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
WalletInfoDialog::~WalletInfoDialog() = default;
|
Loading…
Reference in a new issue