Zwrotomat/mainwindow.cpp
/**
 * @brief MainWindow::doneClonning
 * Action to preform afther git cloning
 * @param clonedDir cloned dir
 */
@brief MainWindow::doneClonning
Action to preform afther git cloning
@param clonedDir cloned dir
@brief MainWindow :: doneClonning Action to preform afther git cloning @param clonedDir cloned dir
void MainWindow::doneClonning(const QDir &clonedDir)
{
    this->m_currentComment = new MultiFileComment();
    qDeleteAll(this->m_Comments->begin(), this->m_Comments->end());
    this->m_Comments->clear();
    this->m_Comments = new QHash<QString, MultiFileComment*>();
    this->m_selectedDir = clonedDir;
    qDebug() << "Initilizing TreeView with " << clonedDir;
    m_fileModel->setRootPath(clonedDir.path());
    ui->treeFileExplorer->setModel(m_fileModel);
    ui->treeFileExplorer->setRootIndex(m_fileModel->index(clonedDir.path()));
}
void MainWindow :: doneClonning ( const QDir & clonedDir ) { this -> m_currentComment = new MultiFileComment ( ) ; qDeleteAll ( this -> m_Comments -> begin ( ) , this -> m_Comments -> end ( ) ) ; this -> m_Comments -> clear ( ) ; this -> m_Comments = new QHash < QString , MultiFileComment * > ( ) ; this -> m_selectedDir = clonedDir ; qDebug ( ) << " " << clonedDir ; m_fileModel -> setRootPath ( clonedDir . path ( ) ) ; ui -> treeFileExplorer -> setModel ( m_fileModel ) ; ui -> treeFileExplorer -> setRootIndex ( m_fileModel -> index ( clonedDir . path ( ) ) ) ; }
@brief MainWindow::doneClonning
 Action to preform afther git cloning
 @param clonedDir cloned dir
@brief MainWindow :: doneClonning Action to preform afther git cloning @param clonedDir cloned dir
//clere QHash and dealocate occupied memory //set root path