Skip to content

Commit 4690a9a

Browse files
fuzzelhjbdanmar
andauthored
Check specific vs config (danmar#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 <[email protected]>
1 parent 074d08e commit 4690a9a

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

gui/projectfiledialog.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,10 @@ void ProjectFileDialog::loadFromProjectFile(const ProjectFile *projectFile)
340340
}
341341
}
342342
else
343+
{
344+
mUI.mListVsConfigs->clear();
343345
mUI.mListVsConfigs->setEnabled(false);
346+
}
344347

345348
}
346349

@@ -460,6 +463,8 @@ void ProjectFileDialog::updatePathsAndDefines()
460463
mUI.mBtnIncludeDown->setEnabled(!importProject);
461464
mUI.mChkAllVsConfigs->setEnabled(fileName.endsWith(".sln") || fileName.endsWith(".vcxproj"));
462465
mUI.mListVsConfigs->setEnabled(fileName.endsWith(".sln") || fileName.endsWith(".vcxproj"));
466+
if(!mUI.mListVsConfigs->isEnabled())
467+
mUI.mListVsConfigs->clear();
463468
}
464469

465470
void ProjectFileDialog::clearImportProject()

gui/projectfiledialog.ui

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<x>0</x>
88
<y>0</y>
99
<width>888</width>
10-
<height>573</height>
10+
<height>546</height>
1111
</rect>
1212
</property>
1313
<property name="windowTitle">

0 commit comments

Comments
 (0)