| 614 | } |
| 615 | |
| 616 | void MainWindow::showMessage(QString msg, MessageType status) |
| 617 | { |
| 618 | if(status == MainWindow::MESSAGE_SUCCESS) |
| 619 | { |
| 620 | ui->statusBar->setStyleSheet("background: #3ad179; font-weight: bold;"); |
| 621 | } |
| 622 | else if(status == MainWindow::MESSAGE_ERROR) |
| 623 | { |
| 624 | ui->statusBar->setStyleSheet("background: #e74c3c; font-weight: bold;"); |
| 625 | } |
| 626 | else |
| 627 | { |
| 628 | ui->statusBar->setStyleSheet("background: none; font-weight: bold;"); |
| 629 | } |
| 630 | ui->statusBar->showMessage(msg); |
| 631 | |
| 632 | _messageLabelTimer->start(3000); |
| 633 | connect(_messageLabelTimer, &QTimer::timeout, this, &MainWindow::hideMessage); |
| 634 | } |
| 635 | |
| 636 | void MainWindow::addStep(IPProcessStep *step) |
| 637 | { |
no test coverage detected