From e950a357d90aaa9ea1f6347cba7956fe12733f90 Mon Sep 17 00:00:00 2001 From: Tobias Koenig Date: Tue, 20 Feb 2007 15:25:05 +0000 Subject: [PATCH] Make it compile with current SVN trunk svn path=/trunk/playground/graphics/okular/; revision=635664 --- shell/shell.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/shell/shell.cpp b/shell/shell.cpp index 2cb89eae4..17e1a7ad5 100644 --- a/shell/shell.cpp +++ b/shell/shell.cpp @@ -138,20 +138,20 @@ void Shell::openUrl( const KUrl & url, uint page ) void Shell::readSettings() { - m_recent->loadEntries( KGlobal::config().data() ); + m_recent->loadEntries( KGlobal::config()->group( "Recent Files" ) ); m_recent->setEnabled( true ); // force enabling m_recent->setToolTip( i18n("Click to open a file\nClick and hold to open a recent file") ); - KGlobal::config()->setDesktopGroup(); - bool fullScreen = KGlobal::config()->readEntry( "FullScreen", false ); + const KConfigGroup group = KGlobal::config()->group( "Desktop Entry" ); + bool fullScreen = group.readEntry( "FullScreen", false ); setFullScreen( fullScreen ); } void Shell::writeSettings() { - m_recent->saveEntries( KGlobal::config().data() ); - KGlobal::config()->setDesktopGroup(); - KGlobal::config()->writeEntry( "FullScreen", m_fullScreenAction->isChecked()); + m_recent->saveEntries( KGlobal::config()->group( "Recent Files" ) ); + KConfigGroup group = KGlobal::config()->group( "Desktop Entry" ); + group.writeEntry( "FullScreen", m_fullScreenAction->isChecked() ); KGlobal::config()->sync(); } @@ -292,7 +292,7 @@ Shell::optionsConfigureToolbars() void Shell::applyNewToolbarConfig() { - applyMainWindowSettings(KGlobal::config().data(), "MainWindow"); + applyMainWindowSettings(KGlobal::config()->group("MainWindow")); } void Shell::slotQuit()