summaryrefslogtreecommitdiff
path: root/src/plugins/texteditor/snippets/snippeteditor.h
diff options
context:
space:
mode:
authorhjk <hjk121@nokiamail.com>2014-08-20 23:04:08 +0200
committerChristian Stenger <christian.stenger@digia.com>2014-08-21 07:36:17 +0200
commitba5124052456601e0942a3c4ac48bfe1623c58f0 (patch)
treeb5934839d961c20e16a70bb09b918563d61b432b /src/plugins/texteditor/snippets/snippeteditor.h
parent208865dd0a711919b27c93e45ee19b6e71cd7a31 (diff)
downloadqt-creator-ba5124052456601e0942a3c4ac48bfe1623c58f0.tar.gz
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>
Diffstat (limited to 'src/plugins/texteditor/snippets/snippeteditor.h')
-rw-r--r--src/plugins/texteditor/snippets/snippeteditor.h18
1 files changed, 1 insertions, 17 deletions
diff --git a/src/plugins/texteditor/snippets/snippeteditor.h b/src/plugins/texteditor/snippets/snippeteditor.h
index d563fd363f..1378129a18 100644
--- a/src/plugins/texteditor/snippets/snippeteditor.h
+++ b/src/plugins/texteditor/snippets/snippeteditor.h
@@ -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