Zwrotomat/mainwindow.cpp
/**
 * @brief MainWindow::selectComment Action for changing selected comment
 * @param text key of the comment to load
 */
@brief MainWindow::selectComment Action for changing selected comment
@param text key of the comment to load
@brief MainWindow :: selectComment Action for changing selected comment @param text key of the comment to load
void MainWindow::selectComment(const QString &text)
{
    this->m_currentComment = this->m_Comments->value(text);
    if(!this->m_selectedFile.isEmpty()){
        this->loadCurrentFile();
        ui->textBrowser->loadSelectedLines(*this->m_currentComment, this->m_selectedFile);
    }
    ui->commentEdit->setText(m_currentComment->getComment());
}
void MainWindow :: selectComment ( const QString & text ) { this -> m_currentComment = this -> m_Comments -> value ( text ) ; if ( ! this -> m_selectedFile . isEmpty ( ) ) { this -> loadCurrentFile ( ) ; ui -> textBrowser -> loadSelectedLines ( * this -> m_currentComment , this -> m_selectedFile ) ; } ui -> commentEdit -> setText ( m_currentComment -> getComment ( ) ) ; }
@brief MainWindow::selectComment Action for changing selected comment
 @param text key of the comment to load
@brief MainWindow :: selectComment Action for changing selected comment @param text key of the comment to load
//reloading lines