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

Method setPersistent

kdevplatform/shell/workingsets/workingset.cpp:554–562  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

552}
553
554void WorkingSet::setPersistent(bool persistent) {
555 KConfigGroup setConfig(Core::self()->activeSession()->config(), QStringLiteral("Working File Sets"));
556 KConfigGroup group = setConfig.group(m_id);
557 group.writeEntry("persistent", persistent);
558#ifdef SYNC_OFTEN
559 group.sync();
560#endif
561 qCDebug(WORKINGSET) << "setting" << m_id << "persistent:" << persistent;
562}
563
564bool WorkingSet::isPersistent() const {
565 KConfigGroup setConfig(Core::self()->activeSession()->config(), QStringLiteral("Working File Sets"));

Callers 11

viewAddedMethod · 0.80
createWorkingSetMethod · 0.80
deleteWorkingSetMethod · 0.80
switchAreaMethod · 0.80
restoreSplitsMethod · 0.80
intersectSetMethod · 0.80
subtractSetMethod · 0.80
duplicateSetMethod · 0.80
loadSetMethod · 0.80
closeSetMethod · 0.80
buttonTriggeredMethod · 0.80

Calls 3

writeEntryMethod · 0.80
configMethod · 0.45
activeSessionMethod · 0.45

Tested by 4

createWorkingSetMethod · 0.64
deleteWorkingSetMethod · 0.64
switchAreaMethod · 0.64
restoreSplitsMethod · 0.64