mirror of https://github.com/GOSTSec/gostcoin
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
1.1 KiB
28 lines
1.1 KiB
#include "showi2paddresses.h" |
|
#include "ui_showi2paddresses.h" |
|
|
|
ShowI2PAddresses::ShowI2PAddresses(const QString& caption, const QString& pub, const QString& priv, const QString& b32, const QString& configFileName, QWidget *parent) : |
|
QDialog(parent), |
|
ui(new Ui::ShowI2PAddresses) |
|
{ |
|
ui->setupUi(this); |
|
this->setWindowTitle(caption); |
|
ui->pubText->setPlainText(pub); |
|
ui->privText->setText("<b>mydestination=</b>" + priv); |
|
ui->b32Line->setText(b32); |
|
ui->label->setText(ui->label->text() + "\n" + configFileName); |
|
|
|
QObject::connect(ui->privButton, SIGNAL(clicked()), ui->privText, SLOT(selectAll())); |
|
QObject::connect(ui->privButton, SIGNAL(clicked()), ui->privText, SLOT(copy())); |
|
|
|
QObject::connect(ui->pubButton, SIGNAL(clicked()), ui->pubText, SLOT(selectAll())); |
|
QObject::connect(ui->pubButton, SIGNAL(clicked()), ui->pubText, SLOT(copy())); |
|
|
|
QObject::connect(ui->b32Button, SIGNAL(clicked()), ui->b32Line, SLOT(selectAll())); |
|
QObject::connect(ui->b32Button, SIGNAL(clicked()), ui->b32Line, SLOT(copy())); |
|
} |
|
|
|
ShowI2PAddresses::~ShowI2PAddresses() |
|
{ |
|
delete ui; |
|
}
|
|
|