forked from qt-creator/qt-creator
Use more FilePathAspect
Change-Id: Ib348df1460f8610607251498b07010df58d51ddf Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
@@ -36,7 +36,6 @@ CppcheckOptions::CppcheckOptions()
|
||||
|
||||
registerAspect(&binary);
|
||||
binary.setSettingsKey("binary");
|
||||
binary.setDisplayStyle(StringAspect::PathChooserDisplay);
|
||||
binary.setExpectedKind(PathChooser::ExistingCommand);
|
||||
binary.setCommandVersionArguments({"--version"});
|
||||
binary.setLabelText(Tr::tr("Binary:"));
|
||||
|
||||
@@ -17,7 +17,7 @@ public:
|
||||
|
||||
std::function<void(QWidget *widget)> layouter();
|
||||
|
||||
Utils::StringAspect binary;
|
||||
Utils::FilePathAspect binary;
|
||||
Utils::BoolAspect warning;
|
||||
Utils::BoolAspect style;
|
||||
Utils::BoolAspect performance;
|
||||
|
||||
@@ -100,7 +100,7 @@ void CppcheckTool::updateArguments()
|
||||
|
||||
arguments.push_back("--template=\"{file},{line},{severity},{id},{message}\"");
|
||||
|
||||
m_runner->reconfigure(m_options.binary.filePath(), arguments.join(' '));
|
||||
m_runner->reconfigure(m_options.binary(), arguments.join(' '));
|
||||
}
|
||||
|
||||
QStringList CppcheckTool::additionalArguments(const CppEditor::ProjectPart &part) const
|
||||
|
||||
Reference in New Issue
Block a user