aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/python/pythoneditor.h
diff options
context:
space:
mode:
authorhjk <hjk@qt.io>2024-01-15 16:31:41 +0100
committerhjk <hjk@qt.io>2024-01-16 10:43:06 +0000
commit5de41fb40df2bc229fb32b1d7d3836daea5e0474 (patch)
tree4e516c026646a46724429726d478568654ef4bb7 /src/plugins/python/pythoneditor.h
parent1992efddfc2617d77d3e39ac3c2e6a4bf8d66a19 (diff)
Python: Use new plugin items setup pattern for PythonEditor
Change-Id: Ie8516960a106ddeff415b6412d9af66f7d2f0f36 Reviewed-by: David Schulz <david.schulz@qt.io>
Diffstat (limited to 'src/plugins/python/pythoneditor.h')
-rw-r--r--src/plugins/python/pythoneditor.h11
1 files changed, 2 insertions, 9 deletions
diff --git a/src/plugins/python/pythoneditor.h b/src/plugins/python/pythoneditor.h
index 6f6b30c1c3e..da498be0234 100644
--- a/src/plugins/python/pythoneditor.h
+++ b/src/plugins/python/pythoneditor.h
@@ -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