forked from qt-creator/qt-creator
Core: deqobjectify IDocumentFactory
Change-Id: Ic9b76d42e0c07503fb5b2454d08e42f61a9ad641 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -31,8 +31,7 @@ namespace Core {
|
||||
|
||||
static QList<IDocumentFactory *> g_documentFactories;
|
||||
|
||||
IDocumentFactory::IDocumentFactory(QObject *parent)
|
||||
: QObject(parent)
|
||||
IDocumentFactory::IDocumentFactory()
|
||||
{
|
||||
g_documentFactories.append(this);
|
||||
}
|
||||
|
||||
@@ -29,7 +29,6 @@
|
||||
|
||||
#include <utils/id.h>
|
||||
|
||||
#include <QObject>
|
||||
#include <QStringList>
|
||||
|
||||
#include <functional>
|
||||
@@ -38,13 +37,11 @@ namespace Core {
|
||||
|
||||
class IDocument;
|
||||
|
||||
class CORE_EXPORT IDocumentFactory : public QObject
|
||||
class CORE_EXPORT IDocumentFactory
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
IDocumentFactory(QObject *parent = nullptr);
|
||||
~IDocumentFactory() override;
|
||||
IDocumentFactory();
|
||||
~IDocumentFactory();
|
||||
|
||||
static const QList<IDocumentFactory *> allDocumentFactories();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user