Differential D15694 Diff 42139 kdevplatform/language/codecompletion/normaldeclarationcompletionitem.cpp
Changeset View
Changeset View
Standalone View
Standalone View
kdevplatform/language/codecompletion/normaldeclarationcompletionitem.cpp
Show First 20 Lines • Show All 188 Lines • ▼ Show 20 Line(s) | 188 | } else if (index.column() == CodeCompletionModel::Arguments) { | |||
---|---|---|---|---|---|
189 | if (m_declaration->isFunctionDeclaration()) { | 189 | if (m_declaration->isFunctionDeclaration()) { | ||
190 | auto functionType = declaration()->type<FunctionType>(); | 190 | auto functionType = declaration()->type<FunctionType>(); | ||
191 | return functionType ? functionType->partToString(FunctionType::SignatureArguments) : QVariant(); | 191 | return functionType ? functionType->partToString(FunctionType::SignatureArguments) : QVariant(); | ||
192 | } | 192 | } | ||
193 | } | 193 | } | ||
194 | break; | 194 | break; | ||
195 | case CodeCompletionModel::BestMatchesCount: | 195 | case CodeCompletionModel::BestMatchesCount: | ||
196 | return QVariant(normalBestMatchesCount); | 196 | return QVariant(normalBestMatchesCount); | ||
197 | break; | | |||
198 | case CodeCompletionModel::IsExpandable: | 197 | case CodeCompletionModel::IsExpandable: | ||
199 | return QVariant(createsExpandingWidget()); | 198 | return QVariant(createsExpandingWidget()); | ||
200 | case CodeCompletionModel::ExpandingWidget: { | 199 | case CodeCompletionModel::ExpandingWidget: { | ||
201 | QWidget* nav = createExpandingWidget(model); | 200 | QWidget* nav = createExpandingWidget(model); | ||
202 | Q_ASSERT(nav); | 201 | Q_ASSERT(nav); | ||
203 | 202 | | |||
204 | QVariant v; | 203 | QVariant v; | ||
205 | v.setValue<QWidget*>(nav); | 204 | v.setValue<QWidget*>(nav); | ||
Show All 26 Lines |