aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/texteditor/plaintexteditorfactory.h
diff options
context:
space:
mode:
authorhjk <hjk121@nokiamail.com>2014-08-27 11:19:04 +0200
committerhjk <hjk121@nokiamail.com>2014-08-27 12:35:32 +0200
commit7b67701dea2aa6ff046bcffdbec70f7fd941599e (patch)
treec3c22ed73e481e07ec4bdc8bc02deadc5b5016ab /src/plugins/texteditor/plaintexteditorfactory.h
parent59f1ffd9d24726a22f135fc66f9d073e38575141 (diff)
TextEditor: Fix failure in cpptools autotest
The issue only appeared in the test due to the different editor construction there. Now use the same factory access. Change-Id: I3a8534fbe683bb88f04ad68850cecdfe32b11433 Reviewed-by: Christian Stenger <christian.stenger@digia.com>
Diffstat (limited to 'src/plugins/texteditor/plaintexteditorfactory.h')
-rw-r--r--src/plugins/texteditor/plaintexteditorfactory.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/texteditor/plaintexteditorfactory.h b/src/plugins/texteditor/plaintexteditorfactory.h
index 3ade4c07d56..8a90f1fc81d 100644
--- a/src/plugins/texteditor/plaintexteditorfactory.h
+++ b/src/plugins/texteditor/plaintexteditorfactory.h
@@ -33,17 +33,17 @@
#include <texteditor/basetexteditor.h>
namespace TextEditor {
-namespace Internal {
-class PlainTextEditorFactory : public TextEditor::BaseTextEditorFactory
+class TEXTEDITOR_EXPORT PlainTextEditorFactory : public TextEditor::BaseTextEditorFactory
{
Q_OBJECT
public:
PlainTextEditorFactory();
+ static PlainTextEditorFactory *instance();
+ static BaseTextEditor *createPlainTextEditor();
};
-} // namespace Internal
} // namespace TextEditor
#endif // PLAINTEXTEDITORFACTORY_H