示例#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());
}