forked from qt-creator/qt-creator
Core: Remove parent pointer from IOptionPage constructor
Not used anymore. Change-Id: Ic44ce021b1f952337a3193454b5b6649d5847446 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -240,8 +240,7 @@ static QList<IOptionsPage *> g_optionsPages;
|
||||
Constructs an options page with the given \a parent and registers it
|
||||
at the global options page pool if \a registerGlobally is \c true.
|
||||
*/
|
||||
IOptionsPage::IOptionsPage(QObject *parent, bool registerGlobally)
|
||||
: QObject(parent)
|
||||
IOptionsPage::IOptionsPage(bool registerGlobally)
|
||||
{
|
||||
if (registerGlobally)
|
||||
g_optionsPages.append(this);
|
||||
|
||||
@@ -42,7 +42,7 @@ class CORE_EXPORT IOptionsPage : public QObject
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
IOptionsPage(QObject *parent = nullptr, bool registerGlobally = true);
|
||||
explicit IOptionsPage(bool registerGlobally = true);
|
||||
~IOptionsPage() override;
|
||||
|
||||
static const QList<IOptionsPage *> allOptionsPages();
|
||||
|
||||
@@ -34,8 +34,8 @@ public:
|
||||
};
|
||||
|
||||
|
||||
SettingsPage::SettingsPage(QDesignerOptionsPageInterface *designerPage) :
|
||||
Core::IOptionsPage(nullptr, false)
|
||||
SettingsPage::SettingsPage(QDesignerOptionsPageInterface *designerPage)
|
||||
: Core::IOptionsPage(false)
|
||||
{
|
||||
setId(Utils::Id::fromString(designerPage->name()));
|
||||
setDisplayName(designerPage->name());
|
||||
|
||||
Reference in New Issue
Block a user