~neon/kmouth/master

« back to all changes in this revision

Viewing changes to texttospeechconfigurationwidget.cpp

  • Committer: Jeremy Whiting
  • Date: 2015-05-07 02:51:46 UTC
  • Revision ID: git-v1:d3e2a75c3d4ecc99dcf99af4b928f889538dd590
Port from KConfig to KSharedConfig.

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
 
20
20
#include <QTextCodec>
21
21
 
22
 
#include <KConfig>
23
22
#include <KLocalizedString>
24
23
 
25
24
#include "speech.h"
71
70
    return ttsSystem;
72
71
}
73
72
 
74
 
void TextToSpeechConfigurationWidget::readOptions(KConfig *config, const QString &langGroup)
 
73
void TextToSpeechConfigurationWidget::readOptions(const QString &langGroup)
75
74
{
76
 
    ttsSystem->readOptions(config, langGroup);
 
75
    ttsSystem->readOptions(langGroup);
77
76
    urlReq->setUrl(ttsSystem->ttsCommand);
78
77
    stdInButton->setChecked(ttsSystem->stdIn);
79
78
    characterCodingBox->setCurrentIndex(ttsSystem->codec);
80
79
    useQtSpeech->setChecked(ttsSystem->useQtSpeech);
81
80
}
82
81
 
83
 
void TextToSpeechConfigurationWidget::saveOptions(KConfig *config, const QString &langGroup)
 
82
void TextToSpeechConfigurationWidget::saveOptions(const QString &langGroup)
84
83
{
85
 
    ttsSystem->saveOptions(config, langGroup);
 
84
    ttsSystem->saveOptions(langGroup);
86
85
}
87
86