2020-09-04 00:26:25 +00:00
|
|
|
#include "editandresend.h"
|
|
|
|
#include "ui_editandresend.h"
|
|
|
|
|
2021-01-01 20:22:03 +00:00
|
|
|
EditAndResend::EditAndResend(std::tuple<QString, QString, QString, QString> initial, QWidget *parent) :
|
2020-09-04 00:26:25 +00:00
|
|
|
QDialog(parent),
|
|
|
|
ui(new Ui::EditAndResend)
|
|
|
|
{
|
|
|
|
ui->setupUi(this);
|
2021-01-01 20:22:03 +00:00
|
|
|
|
|
|
|
auto [requestHeader, requestData, responseHeader, responseData] = initial;
|
|
|
|
|
|
|
|
ui->requestHeaderEdit->setPlainText(requestHeader);
|
|
|
|
ui->requestDataEdit->setPlainText(requestData);
|
|
|
|
ui->responseHeaderEdit->setPlainText(responseHeader);
|
|
|
|
ui->responseDataEdit->setPlainText(responseData);
|
2020-09-04 00:26:25 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
EditAndResend::~EditAndResend()
|
|
|
|
{
|
|
|
|
delete ui;
|
|
|
|
}
|