mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-21 12:26:11 +00:00
27 lines
490 B
C++
27 lines
490 B
C++
|
|
||
|
#include "AsyncTaskDialog.h"
|
||
|
#include "utils/AsyncTask.h"
|
||
|
|
||
|
#include "ui_AsyncTaskDialog.h"
|
||
|
|
||
|
AsyncTaskDialog::AsyncTaskDialog(AsyncTask *task, QWidget *parent)
|
||
|
: QDialog(parent),
|
||
|
ui(new Ui::AsyncTaskDialog),
|
||
|
task(task)
|
||
|
{
|
||
|
ui->setupUi(this);
|
||
|
|
||
|
connect(task, &AsyncTask::logChanged, this, &AsyncTaskDialog::updateLog);
|
||
|
|
||
|
updateLog();
|
||
|
}
|
||
|
|
||
|
AsyncTaskDialog::~AsyncTaskDialog()
|
||
|
{
|
||
|
}
|
||
|
|
||
|
void AsyncTaskDialog::updateLog()
|
||
|
{
|
||
|
ui->logTextEdit->setPlainText(task->getLog());
|
||
|
}
|