44 ui->startTime->setText((
"..."));
49 QString dateStr = dt.toString(
"yyyy-MM-dd HH:mm:ss.zzz");
50 ui->startTime->setText(dateStr);
54 ui->endTime->setText((
"..."));
59 QString dateStr = dt.toString(
"yyyy-MM-dd HH:mm:ss.zzz");
60 ui->endTime->setText(dateStr);
64 QProcess::ProcessError processError;
68 ui->errorText->setText(
"...");
69 ui->exitCode->setText(
"-");
70 ui->exitText->setText(
"...");
71 ui->runningState->setStyleSheet(
"QToolButton { background:rgb(79,79,79); }");
75 ui->errorText->setText(
"...");
76 ui->runningState->setStyleSheet(
"QToolButton { background-color : orange; }");
82 ui->runningState->setStyleSheet(
"QToolButton { background-color : red; }");
87 ui->runningState->setStyleSheet(
"QToolButton { background-color : green; }");
88 ui->errorText->setText(
"No error");
92 QProcess::ExitStatus processExitStatus;
96 ui->exitCode->setText(QString(
"%1").
arg(processExitCode));
101 ui->exitCode->setText(
"-");
102 ui->exitText->setText(
"...");
void setErrorText(const QProcess::ProcessError &processError)
QProcess::ProcessState getLastProcessState() const
uint64_t getLastProcessFinishTimestampms() const
const QString & getLastProcessCommandLine() const
Fixed< IntType, IntBits > arg(const std::complex< Fixed< IntType, IntBits > > &val)
qint64 getLastProcessPid() const
uint64_t getLastProcessStartTimestampms() const
const QString & getLastProcessLog() const
void setExitText(const QProcess::ExitStatus &processExit)
Ui::CommandOutputDialog * ui
bool getLastProcessError(QProcess::ProcessError &error) const
bool getLastProcessExit(int &exitCode, QProcess::ExitStatus &exitStatus) const