MCPcopy Create free account
hub / github.com/KDE/okular / readSettings

Method readSettings

shell/shell.cpp:517–536  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

515}
516
517void Shell::readSettings()
518{
519 readRecentFilesSettings();
520
521 const KConfigGroup group = KSharedConfig::openConfig()->group(DesktopEntryGroupKey());
522 bool fullScreen = group.readEntry("FullScreen", false);
523 setFullScreen(fullScreen);
524
525 if (fullScreen) {
526 m_menuBarWasShown = group.readEntry(shouldShowMenuBarComingFromFullScreen, true);
527 m_toolBarWasShown = group.readEntry(shouldShowToolBarComingFromFullScreen, true);
528 }
529
530 const KConfigGroup sidebarGroup = KSharedConfig::openConfig()->group(GeneralGroupKey());
531 m_sidebar->setVisible(sidebarGroup.readEntry(SIDEBAR_VISIBLE_KEY, true));
532 m_sidebar->setLocked(sidebarGroup.readEntry(SIDEBAR_LOCKED_KEY, true));
533
534 m_showSidebarAction->setChecked(m_sidebar->isVisibleTo(this));
535 m_lockSidebarAction->setChecked(m_sidebar->isLocked());
536}
537
538void Shell::writeSettings()
539{

Callers

nothing calls this directly

Calls 3

DesktopEntryGroupKeyFunction · 0.85
GeneralGroupKeyFunction · 0.85
setVisibleMethod · 0.45

Tested by

no test coverage detected