MCPcopy Create free account
hub / github.com/KDE/kdevelop / addCustomDeclarations

Method addCustomDeclarations

plugins/filetemplates/overridespage.cpp:242–255  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

240}
241
242void OverridesPage::addCustomDeclarations (const QString& category, const QList<DeclarationPointer>& declarations)
243{
244 qCDebug(PLUGIN_FILETEMPLATES) << category << declarations.size();
245 DUChainReadLocker lock(DUChain::lock());
246
247 auto* item = new QTreeWidgetItem(overrideTree(), QStringList() << category);
248 for (const DeclarationPointer& declaration : declarations)
249 {
250 addPotentialOverride(item, declaration);
251 }
252
253 overrideTree()->expandAll();
254 overrideTree()->header()->resizeSections(QHeaderView::ResizeToContents);
255}
256
257void OverridesPage::setFocusToFirstEditWidget()
258{

Callers 1

nextMethod · 0.80

Calls 3

QStringListClass · 0.85
headerMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected