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.
23 lines
537 B
23 lines
537 B
12 months ago
|
#include "diffdisplaydialog.h"
|
||
|
#include "ui_diffdisplaydialog.h"
|
||
|
|
||
|
DiffDisplayDialog::DiffDisplayDialog(QString filename, QString diff, QWidget *parent) :
|
||
|
QDialog(parent),
|
||
|
ui(new Ui::DiffDisplayDialog)
|
||
|
{
|
||
|
ui->setupUi(this);
|
||
|
this->setWindowTitle(filename + " diff");
|
||
|
ui->diffView->setPlainText(diff);
|
||
|
connect(ui->doneButton, &QPushButton::clicked, this, &DiffDisplayDialog::onDoneClicked);
|
||
|
}
|
||
|
|
||
|
DiffDisplayDialog::~DiffDisplayDialog()
|
||
|
{
|
||
|
delete ui;
|
||
|
}
|
||
|
|
||
|
void DiffDisplayDialog::onDoneClicked()
|
||
|
{
|
||
|
this->done(0);
|
||
|
}
|