summaryrefslogtreecommitdiff
path: root/src/plugins/texteditor/plaintexteditor.cpp
diff options
context:
space:
mode:
authorhjk <qthjk@ovi.com>2012-12-29 01:31:08 +0100
committerhjk <qthjk@ovi.com>2012-12-29 19:04:30 +0100
commite833b794b3ebdba075f6fb533a3343f05fbce0fc (patch)
tree487aa3f6b3235165835b8537d8e39478bf167a17 /src/plugins/texteditor/plaintexteditor.cpp
parent82f9de4af05d0663a6c9d84a2e0586e76583f576 (diff)
downloadqt-creator-e833b794b3ebdba075f6fb533a3343f05fbce0fc.tar.gz
Use Core::Id in ICore::showOptionsDialog
Change-Id: I3865fde2347d687a7dee76dd5ca62db69cc4dd04 Reviewed-by: hjk <qthjk@ovi.com>
Diffstat (limited to 'src/plugins/texteditor/plaintexteditor.cpp')
-rw-r--r--src/plugins/texteditor/plaintexteditor.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/plugins/texteditor/plaintexteditor.cpp b/src/plugins/texteditor/plaintexteditor.cpp
index 84b03254cb..7a0eb24996 100644
--- a/src/plugins/texteditor/plaintexteditor.cpp
+++ b/src/plugins/texteditor/plaintexteditor.cpp
@@ -51,9 +51,11 @@
#include <QDebug>
-using namespace TextEditor;
+using namespace Core;
using namespace TextEditor::Internal;
+namespace TextEditor {
+
PlainTextEditor::PlainTextEditor(PlainTextEditorWidget *editor)
: BaseTextEditor(editor)
{
@@ -218,11 +220,13 @@ QString PlainTextEditorWidget::findDefinitionId(const Core::MimeType &mimeType,
void PlainTextEditorWidget::acceptMissingSyntaxDefinitionInfo()
{
- Core::ICore::showOptionsDialog(QLatin1String(Constants::TEXT_EDITOR_SETTINGS_CATEGORY),
- QLatin1String(Constants::TEXT_EDITOR_HIGHLIGHTER_SETTINGS));
+ ICore::showOptionsDialog(Constants::TEXT_EDITOR_SETTINGS_CATEGORY,
+ Constants::TEXT_EDITOR_HIGHLIGHTER_SETTINGS);
}
void PlainTextEditorWidget::ignoreMissingSyntaxDefinitionInfo()
{
m_ignoreMissingSyntaxDefinition = true;
}
+
+} // namespace TextEditor