MCPcopy Create free account
hub / github.com/cpvrlab/ImagePlay / showMessage

Method showMessage

ImagePlay/src/MainWindow.cpp:616–634  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

614}
615
616void 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
636void MainWindow::addStep(IPProcessStep *step)
637{

Callers 3

executeMethod · 0.80
zoomToMethod · 0.80
showProcessDurationMethod · 0.80

Calls 1

startMethod · 0.80

Tested by

no test coverage detected