Python: Use new plugin items setup pattern for PythonEditor

Change-Id: Ie8516960a106ddeff415b6412d9af66f7d2f0f36
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
hjk
2024-01-15 16:31:41 +01:00
parent 1992efddfc
commit 5de41fb40d
3 changed files with 36 additions and 33 deletions

View File

@@ -4,18 +4,9 @@
#pragma once
#include <texteditor/textdocument.h>
#include <texteditor/texteditor.h>
namespace Python::Internal {
class PythonEditorFactory : public TextEditor::TextEditorFactory
{
public:
PythonEditorFactory();
private:
QObject m_guard;
};
class PythonDocument : public TextEditor::TextDocument
{
Q_OBJECT
@@ -29,4 +20,6 @@ signals:
void pythonUpdated(const Utils::FilePath &python);
};
void setupPythonEditorFactory(QObject *guard);
} // Python::Internal