| 515 | } |
| 516 | |
| 517 | void 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 | |
| 538 | void Shell::writeSettings() |
| 539 | { |
nothing calls this directly
no test coverage detected