forked from qt-creator/qt-creator
CppCheck: Use IOptionPage::setWidgetCreator() for settings
Change-Id: I0c2b9d96e53ddcecc3d25e519c3df21b1d09ddf7 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user