mirror of
https://git.wownero.com/wowlet/wowlet.git
synced 2024-08-15 01:03:14 +00:00
33 lines
667 B
C++
33 lines
667 B
C++
|
// SPDX-License-Identifier: BSD-3-Clause
|
||
|
// Copyright (c) 2020, The Monero Project.
|
||
|
|
||
|
#include "ui_contactsdialog.h"
|
||
|
#include "contactsdialog.h"
|
||
|
|
||
|
ContactsDialog::ContactsDialog(QWidget *parent)
|
||
|
: QDialog(parent)
|
||
|
, ui(new Ui::ContactsDialog)
|
||
|
{
|
||
|
ui->setupUi(this);
|
||
|
setMinimumWidth(400);
|
||
|
|
||
|
connect(ui->buttonBox, &QDialogButtonBox::accepted, [&](){
|
||
|
m_address = ui->lineEdit_address->text();
|
||
|
m_name = ui->lineEdit_name->text();
|
||
|
});
|
||
|
|
||
|
this->adjustSize();
|
||
|
}
|
||
|
|
||
|
ContactsDialog::~ContactsDialog()
|
||
|
{
|
||
|
delete ui;
|
||
|
}
|
||
|
|
||
|
QString ContactsDialog::getAddress() {
|
||
|
return m_address;
|
||
|
}
|
||
|
|
||
|
QString ContactsDialog::getName() {
|
||
|
return m_name;
|
||
|
}
|