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:
@@ -37,8 +37,6 @@ QT_FORWARD_DECLARE_CLASS(QSettings)
|
||||
|
||||
namespace CppTools {
|
||||
|
||||
class ClangDiagnosticConfigsWidget;
|
||||
|
||||
namespace Internal {
|
||||
|
||||
namespace Ui { class CppCodeModelSettingsPage; }
|
||||
@@ -49,7 +47,7 @@ class CppCodeModelSettingsWidget: public QWidget
|
||||
|
||||
public:
|
||||
explicit CppCodeModelSettingsWidget(QWidget *parent = 0);
|
||||
~CppCodeModelSettingsWidget();
|
||||
~CppCodeModelSettingsWidget() override;
|
||||
|
||||
void setSettings(const QSharedPointer<CppCodeModelSettings> &s);
|
||||
void applyToSettings() const;
|
||||
@@ -63,7 +61,6 @@ private:
|
||||
|
||||
private:
|
||||
Ui::CppCodeModelSettingsPage *m_ui = nullptr;
|
||||
QPointer<ClangDiagnosticConfigsWidget> m_clangDiagnosticConfigsWidget;
|
||||
QSharedPointer<CppCodeModelSettings> m_settings;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user