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

Method createSession

kdevplatform/shell/sessioncontroller.cpp:417–431  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

415}
416
417Session* SessionController::createSession( const QString& name )
418{
419 Q_D(SessionController);
420
421 Session* s;
422 if(name.startsWith(QLatin1Char('{'))) {
423 s = new Session( QUuid(name).toString(), this );
424 } else {
425 s = new Session( QUuid::createUuid().toString(), this );
426 s->setName( name );
427 }
428 d->addSession( s );
429 updateXmlGuiActionList();
430 return s;
431}
432
433void SessionController::deleteSession( const ISessionLock::Ptr& lock )
434{

Callers

nothing calls this directly

Calls 4

QUuidClass · 0.85
toStringMethod · 0.45
setNameMethod · 0.45
addSessionMethod · 0.45

Tested by

no test coverage detected