forked from qt-creator/qt-creator
TextEditor: Fix snippet editor crash introduced in d85a4f615
The SnippetEditorWidget setup is unusual as it doesn't have an associated SnippetEditorFactory/SnippetEditor creation chain and requires manual intervention. This was lost in the conversion to the new construction scheme. Change-Id: I0919295603432e525c2abd0da762acc8207f996c Reviewed-by: Christian Stenger <christian.stenger@digia.com>
This commit is contained in:
@@ -35,20 +35,6 @@
|
||||
|
||||
namespace TextEditor {
|
||||
|
||||
class SnippetEditorWidget;
|
||||
class SyntaxHighlighter;
|
||||
class Indenter;
|
||||
|
||||
// Should not be necessary in this case, but the base text editor assumes a
|
||||
// valid editable interface.
|
||||
class TEXTEDITOR_EXPORT SnippetEditor : public BaseTextEditor
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
SnippetEditor();
|
||||
};
|
||||
|
||||
class TEXTEDITOR_EXPORT SnippetEditorWidget : public BaseTextEditorWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
@@ -56,8 +42,6 @@ class TEXTEDITOR_EXPORT SnippetEditorWidget : public BaseTextEditorWidget
|
||||
public:
|
||||
SnippetEditorWidget(QWidget *parent = 0);
|
||||
|
||||
void setSyntaxHighlighter(SyntaxHighlighter *highlighter);
|
||||
|
||||
signals:
|
||||
void snippetContentChanged();
|
||||
|
||||
@@ -68,6 +52,6 @@ protected:
|
||||
virtual BaseTextEditor *createEditor();
|
||||
};
|
||||
|
||||
} // TextEditor
|
||||
} // namespace TextEditor
|
||||
|
||||
#endif // SNIPPETEDITOR_H
|
||||
|
||||
Reference in New Issue
Block a user