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

Method enableOpenAfterCurrent

kdevplatform/shell/tests/test_shellbuddy.cpp:119–128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

117
118
119void TestShellBuddy::enableOpenAfterCurrent(bool enable)
120{
121 {
122 KConfigGroup uiGroup = KSharedConfig::openConfig()->group("UiSettings");
123 uiGroup.writeEntry("TabBarOpenAfterCurrent", (enable ? 1 : 0));
124 uiGroup.sync();
125 }
126 Core::self()->uiControllerInternal()->loadSettings();
127 QCOMPARE(Core::self()->uiControllerInternal()->openAfterCurrent(), enable);
128}
129
130
131// ------------------ Tests -------------------------------------------------

Callers

nothing calls this directly

Calls 4

writeEntryMethod · 0.80
uiControllerInternalMethod · 0.80
openAfterCurrentMethod · 0.80
loadSettingsMethod · 0.45

Tested by

no test coverage detected