forked from qt-creator/qt-creator
Core: Remove QObject inheritance of IOptionsPageProvider
This was not really used. Change-Id: I86049697d211d88827a9633b367d2121fa8d1f1c Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -277,8 +277,7 @@ bool IOptionsPage::matches(const QRegularExpression ®exp) const
|
|||||||
|
|
||||||
static QList<IOptionsPageProvider *> g_optionsPagesProviders;
|
static QList<IOptionsPageProvider *> g_optionsPagesProviders;
|
||||||
|
|
||||||
IOptionsPageProvider::IOptionsPageProvider(QObject *parent)
|
IOptionsPageProvider::IOptionsPageProvider()
|
||||||
: QObject(parent)
|
|
||||||
{
|
{
|
||||||
g_optionsPagesProviders.append(this);
|
g_optionsPagesProviders.append(this);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -99,13 +99,13 @@ private:
|
|||||||
before the options pages get available.)
|
before the options pages get available.)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class CORE_EXPORT IOptionsPageProvider : public QObject
|
class CORE_EXPORT IOptionsPageProvider
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_DISABLE_COPY_MOVE(IOptionsPageProvider);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
IOptionsPageProvider(QObject *parent = nullptr);
|
IOptionsPageProvider();
|
||||||
~IOptionsPageProvider() override;
|
virtual ~IOptionsPageProvider();
|
||||||
|
|
||||||
static const QList<IOptionsPageProvider *> allOptionsPagesProviders();
|
static const QList<IOptionsPageProvider *> allOptionsPagesProviders();
|
||||||
|
|
||||||
|
|||||||
@@ -19,8 +19,6 @@ public:
|
|||||||
|
|
||||||
class SettingsPageProvider : public Core::IOptionsPageProvider
|
class SettingsPageProvider : public Core::IOptionsPageProvider
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
SettingsPageProvider();
|
SettingsPageProvider();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user