forked from qt-creator/qt-creator
CppTools: Split diagnostic settings and selection
Now selection is only consists of combobox and a "Manage" button to diagnostic configurations. Diagnostic configurations are moved to the modal dialog which is shown by clicking the mentioned "Manage" button. Change-Id: I607fb923c97e8730448548708f3aaf32ce1983c8 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
This commit is contained in:
@@ -29,12 +29,9 @@
|
||||
|
||||
#include "clangprojectsettings.h"
|
||||
|
||||
#include <cpptools/clangdiagnosticconfigsmodel.h>
|
||||
|
||||
#include <QPointer>
|
||||
|
||||
namespace ProjectExplorer { class Project; }
|
||||
namespace CppTools { class ClangDiagnosticConfigsWidget; }
|
||||
|
||||
namespace ClangCodeModel {
|
||||
namespace Internal {
|
||||
@@ -48,19 +45,16 @@ public:
|
||||
|
||||
private:
|
||||
void onCurrentWarningConfigChanged(const Core::Id ¤tConfigId);
|
||||
void onCustomWarningConfigsChanged(const CppTools::ClangDiagnosticConfigs &customConfigs);
|
||||
void onDelayedTemplateParseClicked(bool);
|
||||
void onClangSettingsChanged(int index);
|
||||
void onAboutToSaveProjectSettings();
|
||||
void refreshDiagnosticConfigsWidgetFromSettings();
|
||||
void connectToCppCodeModelSettingsChanged();
|
||||
void disconnectFromCppCodeModelSettingsChanged();
|
||||
void syncOtherWidgetsToComboBox();
|
||||
|
||||
void refreshDiagnosticConfigsWidgetFromSettings();
|
||||
|
||||
private:
|
||||
Ui::ClangProjectSettingsWidget m_ui;
|
||||
ClangProjectSettings &m_projectSettings;
|
||||
QPointer<CppTools::ClangDiagnosticConfigsWidget> m_diagnosticConfigWidget;
|
||||
};
|
||||
|
||||
} // namespace Internal
|
||||
|
||||
Reference in New Issue
Block a user