forked from qt-creator/qt-creator
Re-enabled automatic completion.
This commit is contained in:
@@ -64,7 +64,6 @@ using namespace QmlJSEditor::Internal;
|
|||||||
using namespace QmlJS;
|
using namespace QmlJS;
|
||||||
|
|
||||||
// #define QML_WITH_SNIPPETS
|
// #define QML_WITH_SNIPPETS
|
||||||
// #define QML_WITH_AUTO_COMPLETION
|
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
|
|
||||||
@@ -578,7 +577,6 @@ bool QmlCodeCompletion::maybeTriggersCompletion(TextEditor::ITextEditable *edito
|
|||||||
if (ch == QLatin1Char('(') || ch == QLatin1Char('.'))
|
if (ch == QLatin1Char('(') || ch == QLatin1Char('.'))
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
#ifdef QML_WITH_AUTO_COMPLETION
|
|
||||||
const QChar characterUnderCursor = editor->characterAt(cursorPosition);
|
const QChar characterUnderCursor = editor->characterAt(cursorPosition);
|
||||||
|
|
||||||
if (isIdentifierChar(ch) && (characterUnderCursor.isSpace() ||
|
if (isIdentifierChar(ch) && (characterUnderCursor.isSpace() ||
|
||||||
@@ -600,7 +598,6 @@ bool QmlCodeCompletion::maybeTriggersCompletion(TextEditor::ITextEditable *edito
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user