forked from qt-creator/qt-creator
ClangTools: Move run settings to projects mode
Make the global run settings available per project in project mode and thus remove the diagnostic config selection from the selectable-files-dialog: * Extract the classes RunSettings and RunSettingsWidget instead of duplicating stuff. * Ensure to pick up the old settings * Add some convenience buttons/links in projects mode allowing to restore the global settings, to open the global settings and to navigate (back) to the analyzer mode. Change-Id: I1b91b6f8e58a87a025774e4643c46e176b2a8885 Reviewed-by: Cristian Adam <cristian.adam@qt.io> Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
This commit is contained in:
@@ -88,18 +88,11 @@ public:
|
||||
return m_widget;
|
||||
}
|
||||
|
||||
void apply() override
|
||||
{
|
||||
ClangToolsSettings::instance()->writeSettings();
|
||||
}
|
||||
|
||||
void finish() override
|
||||
{
|
||||
delete m_widget;
|
||||
}
|
||||
void apply() override { m_widget->apply(); }
|
||||
void finish() override { delete m_widget; }
|
||||
|
||||
private:
|
||||
QPointer<QWidget> m_widget;
|
||||
QPointer<SettingsWidget> m_widget;
|
||||
};
|
||||
|
||||
class ClangToolsPluginPrivate
|
||||
|
||||
Reference in New Issue
Block a user