Dialogs: move destructor to bottom

This commit is contained in:
tobtoht 2021-06-27 14:25:10 +02:00
parent 6921d7b1a7
commit 482ad9cd7e
No known key found for this signature in database
GPG key ID: 1CADD27F41F45C3C
6 changed files with 16 additions and 17 deletions

View file

@ -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;

View file

@ -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;

View file

@ -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;

View file

@ -227,4 +227,3 @@ TxProof TxProofDialog::getProof() {
} }
TxProofDialog::~TxProofDialog() = default; TxProofDialog::~TxProofDialog() = default;

View file

@ -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;

View file

@ -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;