forked from qt-creator/qt-creator
Apply static pattern to TextEditorSetting
Change-Id: I4e6f573d893c0aa2bb4ca9812fc8db2961dac172 Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
@@ -364,9 +364,8 @@ void QmlJSAssistProposalItem::applyContextualContent(TextEditor::BaseTextEditor
|
||||
QString content = text();
|
||||
int cursorOffset = 0;
|
||||
|
||||
const CompletionSettings &completionSettings =
|
||||
TextEditorSettings::instance()->completionSettings();
|
||||
const bool autoInsertBrackets = completionSettings.m_autoInsertBrackets;
|
||||
const bool autoInsertBrackets =
|
||||
TextEditorSettings::completionSettings().m_autoInsertBrackets;
|
||||
|
||||
if (autoInsertBrackets && data().canConvert<CompleteFunctionCall>()) {
|
||||
CompleteFunctionCall function = data().value<CompleteFunctionCall>();
|
||||
|
||||
@@ -266,7 +266,7 @@ void QmlJSEditorPlugin::initializeEditor(QmlJSTextEditorWidget *editor)
|
||||
m_actionHandler->setupActions(editor);
|
||||
|
||||
editor->setLanguageSettingsId(QmlJSTools::Constants::QML_JS_SETTINGS_ID);
|
||||
TextEditor::TextEditorSettings::instance()->initializeEditor(editor);
|
||||
TextEditor::TextEditorSettings::initializeEditor(editor);
|
||||
}
|
||||
|
||||
Utils::JsonSchemaManager *QmlJSEditorPlugin::jsonManager() const
|
||||
|
||||
Reference in New Issue
Block a user