forked from qt-creator/qt-creator
CMakeSpecificSettingsPage: delete SettingsWidget
Also added Q_OBJECT macro, for tr call in ctor. Change-Id: I4766b6299a07e3ba0ebc8577e9f4471021b89f07 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -102,5 +102,11 @@ void CMakeSpecificSettingsPage::apply()
|
||||
m_settings->toSettings(Core::ICore::settings());
|
||||
}
|
||||
|
||||
void CMakeSpecificSettingsPage::finish()
|
||||
{
|
||||
delete m_widget;
|
||||
m_widget = nullptr;
|
||||
}
|
||||
|
||||
} // Internal
|
||||
} // CMakeProjectManager
|
||||
|
@@ -52,15 +52,16 @@ private:
|
||||
|
||||
class CMakeSpecificSettingsPage : public Core::IOptionsPage
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
CMakeSpecificSettingsPage(CMakeSpecificSettings *settings, QObject *parent);
|
||||
|
||||
QWidget *widget() override;
|
||||
void apply() override;
|
||||
void finish() override { }
|
||||
void finish() override;
|
||||
|
||||
private:
|
||||
CMakeSpecificSettings * const m_settings;
|
||||
CMakeSpecificSettings * const m_settings = nullptr;
|
||||
QPointer<CMakeSpecificSettingWidget> m_widget;
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user