| 357 | } |
| 358 | |
| 359 | void ScriptingWindow::log(QString text) |
| 360 | { |
| 361 | ScriptContainer *cont = qobject_cast<ScriptContainer*>(sender()); |
| 362 | if (cont != nullptr) |
| 363 | ui->listLog->addItem(QString::number(elapsedTime.elapsed()) + "(" + cont->fileName + "): " + text); |
| 364 | else |
| 365 | ui->listLog->addItem(QString::number(elapsedTime.elapsed()) + ": " + text); |
| 366 | |
| 367 | if (ui->cbAutoScroll->isChecked()) |
| 368 | { |
| 369 | ui->listLog->scrollToBottom(); |
| 370 | } |
| 371 | } |
no test coverage detected