mainwindow.cpp
/**
 * @brief MainWindow::on_actionStop_triggered
 *
 * This will close the Serialport
 */
@brief MainWindow::on_actionStop_triggered
This will close the Serialport
@brief MainWindow :: on_actionStop_triggered This will close the Serialport
void MainWindow::on_actionStop_triggered()
{
    if(port == NULL)
        return;
    if(portConfig.status == CLOSED)
        return;
    serialseq.stopAllSequences();
    port->close();
    portConfig.status = CLOSED;
    QFont mono("Ubuntu Mono", 11, QFont::Bold);
    ui->pStatus->setText("Status: Close");
    ui->pStatus->setFont(mono);
}
void MainWindow :: on_actionStop_triggered ( ) { if ( port == NULL ) return ; if ( portConfig . status == CLOSED ) return ; serialseq . stopAllSequences ( ) ; port -> close ( ) ; portConfig . status = CLOSED ; QFont mono ( " " , 11 , QFont :: Bold ) ; ui -> pStatus -> setText ( " " ) ; ui -> pStatus -> setFont ( mono ) ; }
@brief MainWindow::on_actionStop_triggered
 This will close the Serialport
@brief MainWindow :: on_actionStop_triggered This will close the Serialport