2017-03-22 11:56:18 -04:00
|
|
|
#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);
|
2017-10-06 09:41:01 +03:00
|
|
|
ui->label->setText(ui->label->text() + "\n" + configFileName);
|
2017-03-22 11:56:18 -04:00
|
|
|
|
2017-10-05 16:25:19 +03:00
|
|
|
QObject::connect(ui->privButton, SIGNAL(clicked()), ui->privText, SLOT(selectAll()));
|
|
|
|
QObject::connect(ui->privButton, SIGNAL(clicked()), ui->privText, SLOT(copy()));
|
2017-03-22 11:56:18 -04:00
|
|
|
|
2017-10-05 16:25:19 +03:00
|
|
|
QObject::connect(ui->pubButton, SIGNAL(clicked()), ui->pubText, SLOT(selectAll()));
|
|
|
|
QObject::connect(ui->pubButton, SIGNAL(clicked()), ui->pubText, SLOT(copy()));
|
2017-03-22 11:56:18 -04:00
|
|
|
|
2017-10-05 16:25:19 +03:00
|
|
|
QObject::connect(ui->b32Button, SIGNAL(clicked()), ui->b32Line, SLOT(selectAll()));
|
|
|
|
QObject::connect(ui->b32Button, SIGNAL(clicked()), ui->b32Line, SLOT(copy()));
|
2017-03-22 11:56:18 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
ShowI2PAddresses::~ShowI2PAddresses()
|
|
|
|
{
|
|
|
|
delete ui;
|
|
|
|
}
|