diff options
author | hjk <hjk@qt.io> | 2020-01-08 17:45:16 +0100 |
---|---|---|
committer | hjk <hjk@qt.io> | 2020-01-09 16:00:18 +0000 |
commit | 0aa530d91179ec125bb9831f925874d35cc050d8 (patch) | |
tree | 37520f2edc3a0c109f5f4b3d7a5d7c815836bc82 /src/plugins/clangtools/settingswidget.cpp | |
parent | a971da3bfecb7624b23f09f4c31cfb79ff8b50f8 (diff) | |
download | qt-creator-0aa530d91179ec125bb9831f925874d35cc050d8.tar.gz |
ClangTools: Use new IOptionsPage convenience for ClangToolsOptionsPage
Change-Id: Ied528676a6040f5b612cf965c539599a8c7b0bbf
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Diffstat (limited to 'src/plugins/clangtools/settingswidget.cpp')
-rw-r--r-- | src/plugins/clangtools/settingswidget.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/plugins/clangtools/settingswidget.cpp b/src/plugins/clangtools/settingswidget.cpp index 7c313f28f6..4c5dea996b 100644 --- a/src/plugins/clangtools/settingswidget.cpp +++ b/src/plugins/clangtools/settingswidget.cpp @@ -72,10 +72,9 @@ SettingsWidget *SettingsWidget::instance() return m_instance; } -SettingsWidget::SettingsWidget(ClangToolsSettings *settings, QWidget *parent) - : QWidget(parent) - , m_ui(new Ui::SettingsWidget) - , m_settings(settings) +SettingsWidget::SettingsWidget() + : m_ui(new Ui::SettingsWidget) + , m_settings(ClangToolsSettings::instance()) { m_instance = this; m_ui->setupUi(this); @@ -85,7 +84,7 @@ SettingsWidget::SettingsWidget(ClangToolsSettings *settings, QWidget *parent) // QString placeHolderText = shippedClangTidyExecutable(); - QString path = settings->clangTidyExecutable(); + QString path = m_settings->clangTidyExecutable(); if (path.isEmpty() && placeHolderText.isEmpty()) path = Constants::CLANG_TIDY_EXECUTABLE_NAME; setupPathChooser(m_ui->clangTidyPathChooser, @@ -99,7 +98,7 @@ SettingsWidget::SettingsWidget(ClangToolsSettings *settings, QWidget *parent) m_ui->clazyStandaloneLabel->setVisible(false); } else { placeHolderText = shippedClazyStandaloneExecutable(); - path = settings->clazyStandaloneExecutable(); + path = m_settings->clazyStandaloneExecutable(); if (path.isEmpty() && placeHolderText.isEmpty()) path = Constants::CLAZY_STANDALONE_EXECUTABLE_NAME; setupPathChooser(m_ui->clazyStandalonePathChooser, |