void MainWindow::projectClosed(Project* project) { closeProjectTabs(project); ProjectManager* manager = qobject_cast<ProjectManager*>(sender()); if(manager) ui_projectFrame->setVisible(manager->projects().size()); }
void MainWindow::projectOpened(Project* project) { ProjectManager* manager = qobject_cast<ProjectManager*>(sender()); if(manager) ui_projectFrame->setVisible(manager->projects().size()); }