Check specific vs config (#2513)

* add support for selected Visual Studio configurations in the UI and the project file

* skip VS configurations that don't match the one in the project file

* rename xml tags

* disable selected VS config textbox if all VS configs should be analyzed

* on importing a VS project/solution also read all configurations

* add QListWidget for VS configurations

* auto select these configs that were loaded from the cppcheck file

* fine tune UI and handling if no VS solution/project is used

Co-authored-by: Daniel Marjamäki <daniel.marjamaki@gmail.com>
This commit is contained in:
fuzzelhjb 2020-01-31 14:08:38 +01:00 committed by GitHub
parent 074d08e39e
commit 4690a9a25d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View File

@ -340,7 +340,10 @@ void ProjectFileDialog::loadFromProjectFile(const ProjectFile *projectFile)
}
}
else
{
mUI.mListVsConfigs->clear();
mUI.mListVsConfigs->setEnabled(false);
}
}
@ -460,6 +463,8 @@ void ProjectFileDialog::updatePathsAndDefines()
mUI.mBtnIncludeDown->setEnabled(!importProject);
mUI.mChkAllVsConfigs->setEnabled(fileName.endsWith(".sln") || fileName.endsWith(".vcxproj"));
mUI.mListVsConfigs->setEnabled(fileName.endsWith(".sln") || fileName.endsWith(".vcxproj"));
if(!mUI.mListVsConfigs->isEnabled())
mUI.mListVsConfigs->clear();
}
void ProjectFileDialog::clearImportProject()

View File

@ -7,7 +7,7 @@
<x>0</x>
<y>0</y>
<width>888</width>
<height>573</height>
<height>546</height>
</rect>
</property>
<property name="windowTitle">