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

Method partialExpandText

plugins/quickopen/expandingtree/expandingwidgetmodel.cpp:261–270  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

259}
260
261QString ExpandingWidgetModel::partialExpandText(const QModelIndex& idx) const
262{
263 Q_ASSERT(idx.model() == this);
264
265 if (!idx.isValid()) {
266 return QString();
267 }
268
269 return data(firstColumn(idx), CodeCompletionModel::ItemSelected).toString();
270}
271
272QRect ExpandingWidgetModel::partialExpandRect(const QModelIndex& idx_) const
273{

Callers 1

drawRowMethod · 0.80

Calls 6

firstColumnFunction · 0.85
QStringClass · 0.50
dataFunction · 0.50
modelMethod · 0.45
isValidMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected