Skip to content
Snippets Groups Projects
Commit cdce7813 authored by Sven Brauch's avatar Sven Brauch
Browse files

Support expanding widgets in the completion list.

BUG:368263
parent 53a2b081
No related branches found
No related tags found
No related merge requests found
......@@ -37,6 +37,16 @@ public:
void setTypeHint(PythonCodeCompletionContext::ItemTypeHint type);
void addMatchQuality(int add);
bool createsExpandingWidget() const override
{
return true;
}
QWidget* createExpandingWidget(const CodeCompletionModel* /*model*/) const override
{
return new Python::NavigationWidget(m_declaration, {}, {}, {}, KDevelop::AbstractNavigationWidget::EmbeddableWidget);
}
protected:
PythonCodeCompletionContext::ItemTypeHint m_typeHint;
int m_addMatchQuality;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment