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
|
Constructs an options page with the given \a parent and registers it
|
||||||
at the global options page pool if \a registerGlobally is \c true.
|
at the global options page pool if \a registerGlobally is \c true.
|
||||||
*/
|
*/
|
||||||
IOptionsPage::IOptionsPage(QObject *parent, bool registerGlobally)
|
IOptionsPage::IOptionsPage(bool registerGlobally)
|
||||||
: QObject(parent)
|
|
||||||
{
|
{
|
||||||
if (registerGlobally)
|
if (registerGlobally)
|
||||||
g_optionsPages.append(this);
|
g_optionsPages.append(this);
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ class CORE_EXPORT IOptionsPage : public QObject
|
|||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
IOptionsPage(QObject *parent = nullptr, bool registerGlobally = true);
|
explicit IOptionsPage(bool registerGlobally = true);
|
||||||
~IOptionsPage() override;
|
~IOptionsPage() override;
|
||||||
|
|
||||||
static const QList<IOptionsPage *> allOptionsPages();
|
static const QList<IOptionsPage *> allOptionsPages();
|
||||||
|
|||||||
@@ -34,8 +34,8 @@ public:
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
SettingsPage::SettingsPage(QDesignerOptionsPageInterface *designerPage) :
|
SettingsPage::SettingsPage(QDesignerOptionsPageInterface *designerPage)
|
||||||
Core::IOptionsPage(nullptr, false)
|
: Core::IOptionsPage(false)
|
||||||
{
|
{
|
||||||
setId(Utils::Id::fromString(designerPage->name()));
|
setId(Utils::Id::fromString(designerPage->name()));
|
||||||
setDisplayName(designerPage->name());
|
setDisplayName(designerPage->name());
|
||||||
|
|||||||
Reference in New Issue
Block a user