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

Method basicRowHeight

plugins/quickopen/expandingtree/expandingwidgetmodel.cpp:393–405  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

391}
392
393int ExpandingWidgetModel::basicRowHeight(const QModelIndex& idx_) const
394{
395 Q_ASSERT(idx_.model() == treeView()->model());
396
397 QModelIndex idx(firstColumn(idx_));
398
399 auto* delegate = qobject_cast<ExpandingDelegate*>(treeView()->itemDelegateForIndex(idx));
400 if (!delegate || !idx.isValid()) {
401 qCDebug(PLUGIN_QUICKOPEN) << "ExpandingWidgetModel::basicRowHeight: Could not get delegate";
402 return 15;
403 }
404 return delegate->basicSizeHint(idx).height();
405}
406
407void ExpandingWidgetModel::placeExpandingWidget(const QModelIndex& idx_)
408{

Callers

nothing calls this directly

Calls 4

firstColumnFunction · 0.85
basicSizeHintMethod · 0.80
modelMethod · 0.45
isValidMethod · 0.45

Tested by

no test coverage detected