summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoberto Raggi <roberto.raggi@nokia.com>2009-10-05 18:42:46 +0200
committerRoberto Raggi <roberto.raggi@nokia.com>2009-10-05 18:43:23 +0200
commitd43cbfbb15fd89296086e2085ff0a3ff457e5a1f (patch)
tree4ed4e78995785eb38d93d46d3ba03126d33a0c96
parente7c1ba536ae4e3383eb5fa2592b92e2d13bc5682 (diff)
downloadqt-creator-d43cbfbb15fd89296086e2085ff0a3ff457e5a1f.tar.gz
Renamed `awesome' :)
-rw-r--r--src/plugins/cpptools/cppcodecompletion.cpp8
-rw-r--r--src/plugins/cpptools/cppcodecompletion.h2
2 files changed, 5 insertions, 5 deletions
diff --git a/src/plugins/cpptools/cppcodecompletion.cpp b/src/plugins/cpptools/cppcodecompletion.cpp
index 4216acac8a..aa071b7359 100644
--- a/src/plugins/cpptools/cppcodecompletion.cpp
+++ b/src/plugins/cpptools/cppcodecompletion.cpp
@@ -508,7 +508,7 @@ CppCodeCompletion::CppCodeCompletion(CppModelManager *manager)
: ICompletionCollector(manager),
m_manager(manager),
m_caseSensitivity(Qt::CaseSensitive),
- awesome(true),
+ m_autoInsertBrackets(true),
m_forcedCompletion(false),
m_completionOperator(T_EOF_SYMBOL)
{
@@ -531,12 +531,12 @@ void CppCodeCompletion::setCaseSensitivity(Qt::CaseSensitivity caseSensitivity)
bool CppCodeCompletion::autoInsertBrackets() const
{
- return awesome;
+ return m_autoInsertBrackets;
}
void CppCodeCompletion::setAutoInsertBrackets(bool autoInsertBrackets)
{
- awesome = autoInsertBrackets;
+ m_autoInsertBrackets = autoInsertBrackets;
}
bool CppCodeCompletion::isPartialCompletionEnabled() const
@@ -1491,7 +1491,7 @@ void CppCodeCompletion::complete(const TextEditor::CompletionItem &item)
//qDebug() << "current symbol:" << overview.prettyName(symbol->name())
//<< overview.prettyType(symbol->type());
- if (awesome && symbol && symbol->type()) {
+ if (m_autoInsertBrackets && symbol && symbol->type()) {
if (Function *function = symbol->type()->asFunctionType()) {
// If the member is a function, automatically place the opening parenthesis,
// except when it might take template parameters.
diff --git a/src/plugins/cpptools/cppcodecompletion.h b/src/plugins/cpptools/cppcodecompletion.h
index 484b6425bc..afe8a16821 100644
--- a/src/plugins/cpptools/cppcodecompletion.h
+++ b/src/plugins/cpptools/cppcodecompletion.h
@@ -151,7 +151,7 @@ private:
CppModelManager *m_manager;
Qt::CaseSensitivity m_caseSensitivity;
- bool awesome;
+ bool m_autoInsertBrackets;
bool m_partialCompletionEnabled;
bool m_forcedCompletion;