~ubuntu-branches/ubuntu/trusty/krusader/trusty

« back to all changes in this revision

Viewing changes to krusader/Konfigurator/konfiguratoritems.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Michał Zając
  • Date: 2011-08-08 13:47:36 UTC
  • mfrom: (1.2.19 upstream)
  • Revision ID: james.westby@ubuntu.com-20110808134736-8e630ivgd2c3sgg5
Tags: 1:2.4.0~beta1-0ubuntu1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
391
391
// KonfiguratorFontChooser class
392
392
///////////////////////////////
393
393
 
394
 
KonfiguratorFontChooser::KonfiguratorFontChooser(QString cls, QString name, QFont *dflt,
 
394
KonfiguratorFontChooser::KonfiguratorFontChooser(QString cls, QString name, QFont dflt,
395
395
        QWidget *parent, bool rst, int pg) : QWidget(parent),
396
396
        defaultValue(dflt)
397
397
{
424
424
void KonfiguratorFontChooser::loadInitialValue()
425
425
{
426
426
    KConfigGroup group(krConfig, ext->getCfgClass());
427
 
    font = group.readEntry(ext->getCfgName(), *defaultValue);
 
427
    font = group.readEntry(ext->getCfgName(), defaultValue);
428
428
    ext->setChanged(false);
429
429
    setFont();
430
430
}
442
442
 
443
443
void KonfiguratorFontChooser::slotSetDefaults(QObject *)
444
444
{
445
 
    font = *defaultValue;
 
445
    font = defaultValue;
446
446
    ext->setChanged();
447
447
    setFont();
448
448
}