~ubuntu-branches/ubuntu/oneiric/kdeplasma-addons/oneiric

« back to all changes in this revision

Viewing changes to libs/lancelot/Global.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Riddell
  • Date: 2010-11-26 13:35:18 UTC
  • mto: (0.4.3 experimental)
  • mto: This revision was merged to the branch mainline in revision 84.
  • Revision ID: james.westby@ubuntu.com-20101126133518-remqkgqjafk2a4jc
Tags: upstream-4.5.80
ImportĀ upstreamĀ versionĀ 4.5.80

Show diffs side-by-side

added added

removed removed

Lines of Context:
502
502
    return d->immutability;
503
503
}
504
504
 
 
505
bool Global::config(const QString & group, const QString & field, bool defaultValue) const
 
506
{
 
507
    KConfigGroup config(Global::self()->config(), group);
 
508
    return  config.readEntry(field, defaultValue);
 
509
}
 
510
 
 
511
int Global::config(const QString & group, const QString & field, int defaultValue) const
 
512
{
 
513
    KConfigGroup config(Global::self()->config(), group);
 
514
    return  config.readEntry(field, defaultValue);
 
515
}
 
516
 
 
517
QString Global::config(const QString & group, const QString & field, const QString & defaultValue) const
 
518
{
 
519
    KConfigGroup config(Global::self()->config(), group);
 
520
    return  config.readEntry(field, defaultValue);
 
521
}
 
522
 
505
523
 
506
524
} // namespace Lancelot
507
525