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:
hjk
2023-05-08 14:25:50 +02:00
parent e3e17c4586
commit 80a425acba
3 changed files with 5 additions and 8 deletions

View File

@@ -277,8 +277,7 @@ bool IOptionsPage::matches(const QRegularExpression &regexp) const
static QList<IOptionsPageProvider *> g_optionsPagesProviders;
IOptionsPageProvider::IOptionsPageProvider(QObject *parent)
: QObject(parent)
IOptionsPageProvider::IOptionsPageProvider()
{
g_optionsPagesProviders.append(this);
}

View File

@@ -99,13 +99,13 @@ private:
before the options pages get available.)
*/
class CORE_EXPORT IOptionsPageProvider : public QObject
class CORE_EXPORT IOptionsPageProvider
{
Q_OBJECT
Q_DISABLE_COPY_MOVE(IOptionsPageProvider);
public:
IOptionsPageProvider(QObject *parent = nullptr);
~IOptionsPageProvider() override;
IOptionsPageProvider();
virtual ~IOptionsPageProvider();
static const QList<IOptionsPageProvider *> allOptionsPagesProviders();

View File

@@ -19,8 +19,6 @@ public:
class SettingsPageProvider : public Core::IOptionsPageProvider
{
Q_OBJECT
public:
SettingsPageProvider();