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