diff options
author | hjk <hjk@qt.io> | 2020-02-04 18:16:57 +0100 |
---|---|---|
committer | hjk <hjk@qt.io> | 2020-02-05 11:41:29 +0000 |
commit | d7ae3b79f89f91f6b15f807b5c894da7e06c3013 (patch) | |
tree | ebbd5ded1ddd1fa035e99ebe98b384e676cfebb4 /src/plugins/resourceeditor/resourceeditorfactory.h | |
parent | ccc2a347a75c3fd06d8f2028a17a3477c40e0a13 (diff) | |
download | qt-creator-d7ae3b79f89f91f6b15f807b5c894da7e06c3013.tar.gz |
Core: Make IEditorFactory::createEditor use a function object
Also, replace or remove unneeded Q_OBJECTs, and make base
setters and adders protected.
Change-Id: I212257ef53984d8852dc8c478537199fc9483486
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Diffstat (limited to 'src/plugins/resourceeditor/resourceeditorfactory.h')
-rw-r--r-- | src/plugins/resourceeditor/resourceeditorfactory.h | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/src/plugins/resourceeditor/resourceeditorfactory.h b/src/plugins/resourceeditor/resourceeditorfactory.h index ed15110d2f..1a54515a47 100644 --- a/src/plugins/resourceeditor/resourceeditorfactory.h +++ b/src/plugins/resourceeditor/resourceeditorfactory.h @@ -26,26 +26,16 @@ #pragma once #include <coreplugin/editormanager/ieditorfactory.h> -#include <coreplugin/icontext.h> - -#include <QStringList> namespace ResourceEditor { namespace Internal { class ResourceEditorPlugin; -class ResourceEditorFactory : public Core::IEditorFactory +class ResourceEditorFactory final : public Core::IEditorFactory { - Q_OBJECT - public: explicit ResourceEditorFactory(ResourceEditorPlugin *plugin); - - Core::IEditor *createEditor() override; - -private: - ResourceEditorPlugin *m_plugin; }; } // namespace Internal |