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

Method setText

kdevplatform/project/projectmodel.cpp:341–350  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

339}
340
341void ProjectBaseItem::setText( const QString& text )
342{
343 Q_ASSERT(!text.isEmpty() || !parent());
344 Q_D(ProjectBaseItem);
345 d->text = text;
346 if( d->model ) {
347 QModelIndex idx = index();
348 emit d->model->dataChanged(idx, idx);
349 }
350}
351
352ProjectBaseItem::RenameStatus ProjectBaseItem::rename(const QString& newName)
353{

Callers 2

branchNameReadyMethod · 0.45
renameBaseItemMethod · 0.45

Calls 3

parentFunction · 0.85
indexFunction · 0.50
isEmptyMethod · 0.45

Tested by

no test coverage detected