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:
parent
074d08e39e
commit
4690a9a25d
|
@ -340,7 +340,10 @@ void ProjectFileDialog::loadFromProjectFile(const ProjectFile *projectFile)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
{
|
||||||
|
mUI.mListVsConfigs->clear();
|
||||||
mUI.mListVsConfigs->setEnabled(false);
|
mUI.mListVsConfigs->setEnabled(false);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -460,6 +463,8 @@ void ProjectFileDialog::updatePathsAndDefines()
|
||||||
mUI.mBtnIncludeDown->setEnabled(!importProject);
|
mUI.mBtnIncludeDown->setEnabled(!importProject);
|
||||||
mUI.mChkAllVsConfigs->setEnabled(fileName.endsWith(".sln") || fileName.endsWith(".vcxproj"));
|
mUI.mChkAllVsConfigs->setEnabled(fileName.endsWith(".sln") || fileName.endsWith(".vcxproj"));
|
||||||
mUI.mListVsConfigs->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()
|
void ProjectFileDialog::clearImportProject()
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>888</width>
|
<width>888</width>
|
||||||
<height>573</height>
|
<height>546</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="windowTitle">
|
<property name="windowTitle">
|
||||||
|
|
Loading…
Reference in New Issue