CppCheck: Use IOptionPage::setWidgetCreator() for settings

Change-Id: I0c2b9d96e53ddcecc3d25e519c3df21b1d09ddf7
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
hjk
2023-04-20 11:01:48 +02:00
parent 4659053df4
commit 654dae486a
2 changed files with 30 additions and 30 deletions

View File

@@ -6,10 +6,6 @@
#include <coreplugin/dialogs/ioptionspage.h>
#include <utils/filepath.h>
#include <QCoreApplication>
#include <QPointer>
#include <QWidget>
QT_BEGIN_NAMESPACE
class QLineEdit;
class QCheckBox;
@@ -75,17 +71,13 @@ class CppcheckOptionsPage final : public Core::IOptionsPage
public:
explicit CppcheckOptionsPage(CppcheckTool &tool, CppcheckTrigger &trigger);
QWidget *widget() final;
void apply() final;
void finish() final;
private:
friend class CppcheckOptionsPageWidget;
void save(const CppcheckOptions &options) const;
void load(CppcheckOptions &options) const;
CppcheckTool &m_tool;
CppcheckTrigger &m_trigger;
QPointer<OptionsWidget> m_widget;
};
} // Cppcheck::Internal