|
|
@ -131,7 +131,6 @@ void ReceiveWidget::showHeaderMenu(const QPoint& position)
|
|
|
|
|
|
|
|
|
|
|
|
void ReceiveWidget::setQrCode(const QString &address){
|
|
|
|
void ReceiveWidget::setQrCode(const QString &address){
|
|
|
|
const QrCode qrc(address, QrCode::Version::AUTO, QrCode::ErrorCorrectionLevel::MEDIUM);
|
|
|
|
const QrCode qrc(address, QrCode::Version::AUTO, QrCode::ErrorCorrectionLevel::MEDIUM);
|
|
|
|
|
|
|
|
|
|
|
|
int width = ui->qrCode->width() - 4;
|
|
|
|
int width = ui->qrCode->width() - 4;
|
|
|
|
if (qrc.isValid()) {
|
|
|
|
if (qrc.isValid()) {
|
|
|
|
ui->qrCode->setPixmap(qrc.toPixmap(1).scaled(width, width, Qt::KeepAspectRatio));
|
|
|
|
ui->qrCode->setPixmap(qrc.toPixmap(1).scaled(width, width, Qt::KeepAspectRatio));
|
|
|
@ -147,6 +146,12 @@ void ReceiveWidget::showQrCodeDialog() {
|
|
|
|
dialog->deleteLater();
|
|
|
|
dialog->deleteLater();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void ReceiveWidget::selectFirst() {
|
|
|
|
|
|
|
|
if(m_proxyModel->rowCount() > 0) {
|
|
|
|
|
|
|
|
ui->addresses->setCurrentIndex(m_proxyModel->index(0,0));
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
ReceiveWidget::~ReceiveWidget() {
|
|
|
|
ReceiveWidget::~ReceiveWidget() {
|
|
|
|
delete ui;
|
|
|
|
delete ui;
|
|
|
|
}
|
|
|
|
}
|
|
|
|