forked from qt-creator/qt-creator
Use Core::Id in ICore::showOptionsDialog
Change-Id: I3865fde2347d687a7dee76dd5ca62db69cc4dd04 Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user