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

Method toggleSyncCurrentDocument

plugins/projectmanagerview/projectmanagerview.cpp:248–255  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

246}
247
248void ProjectManagerView::toggleSyncCurrentDocument(bool sync)
249{
250 KConfigGroup pmviewConfig(ICore::self()->activeSession()->config(), sessionConfigGroup());
251 pmviewConfig.writeEntry<bool>(syncCurrentDocumentKey, sync);
252 if (sync) {
253 raiseAndLocateCurrentDocument();
254 }
255}
256
257void ProjectManagerView::raiseAndLocateCurrentDocument()
258{

Callers

nothing calls this directly

Calls 3

sessionConfigGroupFunction · 0.85
configMethod · 0.45
activeSessionMethod · 0.45

Tested by

no test coverage detected