Changeset View
Changeset View
Standalone View
Standalone View
analyzers/cppcheck/plugin.cpp
Show First 20 Lines • Show All 294 Lines • ▼ Show 20 Line(s) | 273 | if (context->hasType(KDevelop::Context::ProjectItemContext) && !isRunning()) { | |||
---|---|---|---|---|---|
295 | extension.addAction(KDevelop::ContextMenuExtension::AnalyzeGroup, m_actionProjectItem); | 295 | extension.addAction(KDevelop::ContextMenuExtension::AnalyzeGroup, m_actionProjectItem); | ||
296 | } | 296 | } | ||
297 | 297 | | |||
298 | return extension; | 298 | return extension; | ||
299 | } | 299 | } | ||
300 | 300 | | |||
301 | KDevelop::ConfigPage* Plugin::perProjectConfigPage(int number, const KDevelop::ProjectConfigOptions& options, QWidget* parent) | 301 | KDevelop::ConfigPage* Plugin::perProjectConfigPage(int number, const KDevelop::ProjectConfigOptions& options, QWidget* parent) | ||
302 | { | 302 | { | ||
303 | if (number) | 303 | return number ? nullptr : new ProjectConfigPage(this, options.project, parent); | ||
304 | return nullptr; | | |||
305 | else | | |||
306 | return new ProjectConfigPage(this, options.project, parent); | | |||
307 | } | 304 | } | ||
308 | 305 | | |||
309 | KDevelop::ConfigPage* Plugin::configPage(int number, QWidget* parent) | 306 | KDevelop::ConfigPage* Plugin::configPage(int number, QWidget* parent) | ||
310 | { | 307 | { | ||
311 | if (number) | 308 | return number ? nullptr : new GlobalConfigPage(this, parent); | ||
312 | return nullptr; | | |||
313 | else | | |||
314 | return new GlobalConfigPage(this, parent); | | |||
315 | } | 309 | } | ||
316 | 310 | | |||
317 | } | 311 | } | ||
318 | 312 | | |||
319 | #include "plugin.moc" | 313 | #include "plugin.moc" |