Changeset View
Changeset View
Standalone View
Standalone View
completion/item.cpp
Show First 20 Lines • Show All 145 Lines • ▼ Show 20 Line(s) | 126 | case CodeCompletionModel::Prefix: | |||
---|---|---|---|---|---|
146 | } else if (dec->kind() == Declaration::Namespace) { | 146 | } else if (dec->kind() == Declaration::Namespace) { | ||
147 | return "namespace"; | 147 | return "namespace"; | ||
148 | } | 148 | } | ||
149 | break; | 149 | break; | ||
150 | 150 | | |||
151 | case CodeCompletionModel::Arguments: | 151 | case CodeCompletionModel::Arguments: | ||
152 | if (FunctionType::Ptr functionType = dec->type<FunctionType>()) { | 152 | if (FunctionType::Ptr functionType = dec->type<FunctionType>()) { | ||
153 | QString ret; | 153 | QString ret; | ||
154 | createArgumentList(*this, ret, 0); | 154 | createArgumentList(*this, ret, nullptr); | ||
155 | return ret; | 155 | return ret; | ||
156 | } | 156 | } | ||
157 | break; | 157 | break; | ||
158 | } | 158 | } | ||
159 | break; | 159 | break; | ||
160 | case CodeCompletionModel::HighlightingMethod: | 160 | case CodeCompletionModel::HighlightingMethod: | ||
161 | if (index.column() == CodeCompletionModel::Arguments) { | 161 | if (index.column() == CodeCompletionModel::Arguments) { | ||
162 | if (completionContext()->memberAccessOperation() == CodeCompletionContext::FunctionCallAccess) { | 162 | if (completionContext()->memberAccessOperation() == CodeCompletionContext::FunctionCallAccess) { | ||
▲ Show 20 Lines • Show All 42 Lines • Show Last 20 Lines |