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

Method updateXmlGuiActionList

kdevplatform/shell/sessioncontroller.cpp:524–539  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

522}
523
524void SessionController::updateXmlGuiActionList()
525{
526 Q_D(SessionController);
527
528 unplugActionList( QStringLiteral("available_sessions") );
529
530 if (d->grp) {
531 auto actions = d->grp->actions();
532 std::sort(actions.begin(), actions.end(), [](const QAction* lhs, const QAction* rhs) {
533 auto s1 = lhs->data().value<Session*>();
534 auto s2 = rhs->data().value<Session*>();
535 return QString::localeAwareCompare(s1->description(), s2->description()) < 0;
536 });
537 plugActionList(QStringLiteral("available_sessions"), actions);
538 }
539}
540
541
542QString SessionController::cfgSessionGroup() { return QStringLiteral("Sessions"); }

Callers 3

initializeMethod · 0.80
saveNewToolbarConfigMethod · 0.80
renameSessionMethod · 0.80

Calls 6

sortFunction · 0.85
actionsMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
dataMethod · 0.45
descriptionMethod · 0.45

Tested by

no test coverage detected