TextEditor: Use new setup pattern for PlainTextEditorFactory

Change-Id: Iad3b8574a51db3baf6db74353e58968a2f6a4315
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
hjk
2024-01-26 14:40:38 +01:00
parent d81fb53b74
commit 675e8a4757
5 changed files with 37 additions and 39 deletions

View File

@@ -7,12 +7,8 @@
namespace TextEditor {
class TEXTEDITOR_EXPORT PlainTextEditorFactory : public TextEditor::TextEditorFactory
{
public:
PlainTextEditorFactory();
static PlainTextEditorFactory *instance();
static BaseTextEditor *createPlainTextEditor();
};
TEXTEDITOR_EXPORT BaseTextEditor *createPlainTextEditor();
} // namespace TextEditor
namespace Internal { void setupPlainTextEditor(); }
} // TextEditor