Re-enabled automatic completion.

This commit is contained in:
Roberto Raggi
2010-02-04 14:10:19 +01:00
parent 095ff9e80a
commit a5e701a0f7

View File

@@ -64,7 +64,6 @@ using namespace QmlJSEditor::Internal;
using namespace QmlJS;
// #define QML_WITH_SNIPPETS
// #define QML_WITH_AUTO_COMPLETION
namespace {
@@ -578,7 +577,6 @@ bool QmlCodeCompletion::maybeTriggersCompletion(TextEditor::ITextEditable *edito
if (ch == QLatin1Char('(') || ch == QLatin1Char('.'))
return true;
#ifdef QML_WITH_AUTO_COMPLETION
const QChar characterUnderCursor = editor->characterAt(cursorPosition);
if (isIdentifierChar(ch) && (characterUnderCursor.isSpace() ||
@@ -600,7 +598,6 @@ bool QmlCodeCompletion::maybeTriggersCompletion(TextEditor::ITextEditable *edito
return true;
}
}
#endif
return false;
}