Commit d43cbfbb authored by Roberto Raggi's avatar Roberto Raggi
Browse files

Renamed `awesome' :)

parent e7c1ba53
...@@ -508,7 +508,7 @@ CppCodeCompletion::CppCodeCompletion(CppModelManager *manager) ...@@ -508,7 +508,7 @@ CppCodeCompletion::CppCodeCompletion(CppModelManager *manager)
: ICompletionCollector(manager), : ICompletionCollector(manager),
m_manager(manager), m_manager(manager),
m_caseSensitivity(Qt::CaseSensitive), m_caseSensitivity(Qt::CaseSensitive),
awesome(true), m_autoInsertBrackets(true),
m_forcedCompletion(false), m_forcedCompletion(false),
m_completionOperator(T_EOF_SYMBOL) m_completionOperator(T_EOF_SYMBOL)
{ {
...@@ -531,12 +531,12 @@ void CppCodeCompletion::setCaseSensitivity(Qt::CaseSensitivity caseSensitivity) ...@@ -531,12 +531,12 @@ void CppCodeCompletion::setCaseSensitivity(Qt::CaseSensitivity caseSensitivity)
bool CppCodeCompletion::autoInsertBrackets() const bool CppCodeCompletion::autoInsertBrackets() const
{ {
return awesome; return m_autoInsertBrackets;
} }
void CppCodeCompletion::setAutoInsertBrackets(bool autoInsertBrackets) void CppCodeCompletion::setAutoInsertBrackets(bool autoInsertBrackets)
{ {
awesome = autoInsertBrackets; m_autoInsertBrackets = autoInsertBrackets;
} }
bool CppCodeCompletion::isPartialCompletionEnabled() const bool CppCodeCompletion::isPartialCompletionEnabled() const
...@@ -1491,7 +1491,7 @@ void CppCodeCompletion::complete(const TextEditor::CompletionItem &item) ...@@ -1491,7 +1491,7 @@ void CppCodeCompletion::complete(const TextEditor::CompletionItem &item)
//qDebug() << "current symbol:" << overview.prettyName(symbol->name()) //qDebug() << "current symbol:" << overview.prettyName(symbol->name())
//<< overview.prettyType(symbol->type()); //<< overview.prettyType(symbol->type());
if (awesome && symbol && symbol->type()) { if (m_autoInsertBrackets && symbol && symbol->type()) {
if (Function *function = symbol->type()->asFunctionType()) { if (Function *function = symbol->type()->asFunctionType()) {
// If the member is a function, automatically place the opening parenthesis, // If the member is a function, automatically place the opening parenthesis,
// except when it might take template parameters. // except when it might take template parameters.
......
...@@ -151,7 +151,7 @@ private: ...@@ -151,7 +151,7 @@ private:
CppModelManager *m_manager; CppModelManager *m_manager;
Qt::CaseSensitivity m_caseSensitivity; Qt::CaseSensitivity m_caseSensitivity;
bool awesome; bool m_autoInsertBrackets;
bool m_partialCompletionEnabled; bool m_partialCompletionEnabled;
bool m_forcedCompletion; bool m_forcedCompletion;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment