mirror of
https://github.com/wownero/wowlet.git
synced 2026-10-20 16:48:39 +02:00
Dialogs: move destructor to bottom
This commit is contained in:
@@ -27,8 +27,6 @@ QrCodeDialog::QrCodeDialog(QWidget *parent, const QrCode &qrCode, const QString
|
||||
this->adjustSize();
|
||||
}
|
||||
|
||||
QrCodeDialog::~QrCodeDialog() = default;
|
||||
|
||||
void QrCodeDialog::setQrCode(const QrCode &qrCode) {
|
||||
m_pixmap = qrCode.toPixmap(1).scaled(500, 500, Qt::KeepAspectRatio);
|
||||
ui->QrCode->setPixmap(m_pixmap);
|
||||
@@ -49,4 +47,6 @@ void QrCodeDialog::saveImage() {
|
||||
file.open(QIODevice::WriteOnly);
|
||||
m_pixmap.save(&file, "PNG");
|
||||
QMessageBox::information(this, "Information", "QR code saved to file");
|
||||
}
|
||||
}
|
||||
|
||||
QrCodeDialog::~QrCodeDialog() = default;
|
||||
Reference in New Issue
Block a user