Renamed braces to brackets

Since we're automatically inserting several kinds of brackets, but not
braces ({ }).
This commit is contained in:
Thorbjørn Lindeijer
2009-05-26 11:10:22 +02:00
parent 4774ba14f7
commit 31dada8d92
5 changed files with 15 additions and 15 deletions

View File

@@ -414,7 +414,7 @@ CppCodeCompletion::CppCodeCompletion(CppModelManager *manager)
: ICompletionCollector(manager),
m_manager(manager),
m_caseSensitivity(Qt::CaseSensitive),
m_autoInsertBraces(true),
m_autoInsertBrackets(true),
m_forcedCompletion(false),
m_completionOperator(T_EOF_SYMBOL)
{
@@ -435,14 +435,14 @@ void CppCodeCompletion::setCaseSensitivity(Qt::CaseSensitivity caseSensitivity)
m_caseSensitivity = caseSensitivity;
}
bool CppCodeCompletion::autoInsertBraces() const
bool CppCodeCompletion::autoInsertBrackets() const
{
return m_autoInsertBraces;
return m_autoInsertBrackets;
}
void CppCodeCompletion::setAutoInsertBraces(bool autoInsertBraces)
void CppCodeCompletion::setAutoInsertBrackets(bool autoInsertBrackets)
{
m_autoInsertBraces = autoInsertBraces;
m_autoInsertBrackets = autoInsertBrackets;
}
bool CppCodeCompletion::isPartialCompletionEnabled() const
@@ -1230,7 +1230,7 @@ void CppCodeCompletion::complete(const TextEditor::CompletionItem &item)
//qDebug() << "current symbol:" << overview.prettyName(symbol->name())
//<< overview.prettyType(symbol->type());
if (m_autoInsertBraces && symbol && symbol->type()) {
if (m_autoInsertBrackets && symbol && symbol->type()) {
QString extraChars;
if (Function *function = symbol->type()->asFunctionType()) {