forked from qt-creator/qt-creator
TextEditor: Introduce a BaseTextEditorFactory
The BaseTextEditorFactory will keep a collection of all relevant creation functions (document, editor, widget, indenter, syntax highlighter) and will use them to create or duplicate base text editors in a uniform way. Change-Id: I255b519e35cf1c28d5e198242f99316951a0235e Reviewed-by: Christian Stenger <christian.stenger@digia.com>
This commit is contained in:
@@ -57,13 +57,13 @@ public:
|
||||
const VcsBaseEditorParameters *m_parameters;
|
||||
QObject *m_describeReceiver;
|
||||
const char *m_describeSlot;
|
||||
BaseTextEditor::WidgetCreator m_widgetCreator;
|
||||
BaseTextEditorWidgetCreator m_widgetCreator;
|
||||
};
|
||||
|
||||
} // namespace Internal
|
||||
|
||||
VcsEditorFactory::VcsEditorFactory(const VcsBaseEditorParameters *parameters,
|
||||
const BaseTextEditor::WidgetCreator &creator,
|
||||
const BaseTextEditorWidgetCreator &creator,
|
||||
QObject *describeReceiver, const char *describeSlot)
|
||||
: d(new Internal::BaseVcsEditorFactoryPrivate)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user