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

Method areaChanged

kdevplatform/shell/projectcontroller.cpp:345–349  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

343 }
344
345 void areaChanged(Sublime::Area* area) {
346 KActionCollection* ac = m_core->uiControllerInternal()->defaultMainWindow()->actionCollection();
347 ac->action(QStringLiteral("commit_current_project"))->setEnabled(area->objectName() == QLatin1String("code"));
348 ac->action(QStringLiteral("commit_current_project"))->setVisible(area->objectName() == QLatin1String("code"));
349 }
350};
351
352IProjectDialogProvider::IProjectDialogProvider()

Callers 1

setupActionsMethod · 0.45

Calls 6

defaultMainWindowMethod · 0.80
uiControllerInternalMethod · 0.80
actionCollectionMethod · 0.45
setEnabledMethod · 0.45
actionMethod · 0.45
setVisibleMethod · 0.45

Tested by

no test coverage detected