forked from qt-creator/qt-creator
ProjectExplorer: Make more use of available convenience functions
Change-Id: I53089c5e2138b1c9943d0dbff3857a2dff8ea233 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -178,11 +178,9 @@ void AutotoolsBuildSystem::updateCppCodeModel()
|
||||
QtSupport::CppKitInfo kitInfo(kit());
|
||||
QTC_ASSERT(kitInfo.isValid(), return );
|
||||
|
||||
const Utils::FilePath projectFilePath = project()->projectFilePath();
|
||||
|
||||
RawProjectPart rpp;
|
||||
rpp.setDisplayName(project()->displayName());
|
||||
rpp.setProjectFileLocation(projectFilePath.toString());
|
||||
rpp.setProjectFileLocation(projectFilePath().toString());
|
||||
rpp.setQtVersion(kitInfo.projectPartQtVersion);
|
||||
const QStringList cflags = m_makefileParserThread->cflags();
|
||||
QStringList cxxflags = m_makefileParserThread->cxxflags();
|
||||
|
@@ -118,7 +118,7 @@ NimbleBuildSystem::NimbleBuildSystem(Target *target)
|
||||
m_directoryWatcher.addFile(projectFilePath().toString(), FileSystemWatcher::WatchModifiedDate);
|
||||
|
||||
connect(&m_directoryWatcher, &FileSystemWatcher::fileChanged, this, [this](const QString &path) {
|
||||
if (path == project()->projectFilePath().toString()) {
|
||||
if (path == projectFilePath().toString()) {
|
||||
updateProject();
|
||||
}
|
||||
});
|
||||
|
Reference in New Issue
Block a user