forked from qt-creator/qt-creator
Rework the project settings.
This has still a few missing things, but this enough to start getting some feedback. Missing are non qt projects, a solution for the runconfiguration, a missing black line between the treeview on top and the project settings at the bottom. Some flickering with removing/adding widgets to the QScrollArea and not showing the expanded widget if the Details button is right at the bottom.
This commit is contained in:
@@ -484,7 +484,7 @@ bool SessionManager::canAddDependency(const Project *project, const Project *dep
|
||||
return recursiveDependencyCheck(newDep, checkDep);
|
||||
}
|
||||
|
||||
bool SessionManager::addDependency(const Project *project, const Project *depProject)
|
||||
bool SessionManager::addDependency(Project *project, Project *depProject)
|
||||
{
|
||||
const QString &proName = project->file()->fileName();
|
||||
const QString &depName = depProject->file()->fileName();
|
||||
@@ -498,11 +498,12 @@ bool SessionManager::addDependency(const Project *project, const Project *depPro
|
||||
proDeps.append(depName);
|
||||
m_file->m_depMap[proName] = proDeps;
|
||||
}
|
||||
emit dependencyChanged(project, depProject);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
void SessionManager::removeDependency(const Project *project, const Project *depProject)
|
||||
void SessionManager::removeDependency(Project *project, Project *depProject)
|
||||
{
|
||||
const QString &proName = project->file()->fileName();
|
||||
const QString &depName = depProject->file()->fileName();
|
||||
@@ -514,6 +515,7 @@ void SessionManager::removeDependency(const Project *project, const Project *dep
|
||||
} else {
|
||||
m_file->m_depMap[proName] = proDeps;
|
||||
}
|
||||
emit dependencyChanged(project, depProject);
|
||||
}
|
||||
|
||||
void SessionManager::setStartupProject(Project *startupProject)
|
||||
|
||||
Reference in New Issue
Block a user