s/saver/group as asked by David

svn path=/trunk/KDE/kdebase/workspace/; revision=476072
This commit is contained in:
Laurent Montel 2005-10-31 13:06:25 +00:00
parent 1a9537c873
commit f6df1151f9
3 changed files with 14 additions and 14 deletions

View file

@ -95,8 +95,8 @@ bool KDecorationPlugins::loadPlugin( QString nameStr )
{
if( nameStr.isEmpty())
{
KConfigGroup saver( config, "Style" );
nameStr = saver.readEntry("PluginLib", defaultPlugin );
KConfigGroup group( config, "Style" );
nameStr = group.readEntry("PluginLib", defaultPlugin );
}
// make sure people can switch between HEAD and kwin_iii branch
if( nameStr.startsWith( "kwin_" ))

View file

@ -927,8 +927,8 @@ void Workspace::CDEWalkThroughWindows( bool forward )
Client* nc = c;
bool options_traverse_all;
{
KConfigGroup saver( KGlobal::config(), "TabBox" );
options_traverse_all = saver.readNumEntry("TraverseAll", false );
KConfigGroup group( KGlobal::config(), "TabBox" );
options_traverse_all = group.readNumEntry("TraverseAll", false );
}
if ( !forward )

View file

@ -316,8 +316,8 @@ void Workspace::init()
initial_desktop = client_info.currentDesktop();
else
{
KConfigGroup saver( kapp->sessionConfig(), "Session" );
initial_desktop = saver.readNumEntry( "desktop", 1 );
KConfigGroup group( kapp->sessionConfig(), "Session" );
initial_desktop = group.readNumEntry( "desktop", 1 );
}
if( !setCurrentDesktop( initial_desktop ))
setCurrentDesktop( 1 );
@ -907,9 +907,9 @@ void Workspace::loadDesktopSettings()
groupname = "Desktops";
else
groupname.sprintf("Desktops-screen-%d", screen_number);
KConfigGroup saver(c,groupname);
KConfigGroup group(c,groupname);
int n = saver.readNumEntry("Number", 4);
int n = group.readNumEntry("Number", 4);
number_of_desktops = n;
delete workarea;
workarea = new QRect[ n + 1 ];
@ -919,7 +919,7 @@ void Workspace::loadDesktopSettings()
desktop_focus_chain.resize( n );
for(int i = 1; i <= n; i++)
{
QString s = saver.readEntry(QString("Name_%1").arg(i),
QString s = group.readEntry(QString("Name_%1").arg(i),
i18n("Desktop %1").arg(i));
rootInfo->setDesktopName( i, s.toUtf8().data() );
desktop_focus_chain[i-1] = i;
@ -934,9 +934,9 @@ void Workspace::saveDesktopSettings()
groupname = "Desktops";
else
groupname.sprintf("Desktops-screen-%d", screen_number);
KConfigGroup saver(c,groupname);
KConfigGroup group(c,groupname);
saver.writeEntry("Number", number_of_desktops );
group.writeEntry("Number", number_of_desktops );
for(int i = 1; i <= number_of_desktops; i++)
{
QString s = desktopName( i );
@ -949,13 +949,13 @@ void Workspace::saveDesktopSettings()
if (s != defaultvalue)
{
saver.writeEntry( QString("Name_%1").arg(i), s );
group.writeEntry( QString("Name_%1").arg(i), s );
}
else
{
QString currentvalue = saver.readEntry(QString("Name_%1").arg(i));
QString currentvalue = group.readEntry(QString("Name_%1").arg(i));
if (currentvalue != defaultvalue)
saver.writeEntry( QString("Name_%1").arg(i), "" );
group.writeEntry( QString("Name_%1").arg(i), "" );
}
}
}