forked from qt-creator/qt-creator
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user