Logo Search packages:      
Sourcecode: kanagram version File versions  Download package

MainSettings::MainSettings ( QWidget *  parent ) [explicit]

default constructor

Definition at line 39 of file mainsettings.cpp.

References m_parent, populateLanguageBox(), slotSetDirty(), and slotUpdateLanguage().

                                          : QWidget(parent)
{
    setupUi( this );
    m_parent = (KConfigDialog*)parent;

    connect(parent, SIGNAL(applyClicked()), this, SLOT(slotUpdateLanguage()));
    connect(parent, SIGNAL(okClicked()), this, SLOT(slotUpdateLanguage()));
    connect(languageComboBox, SIGNAL(activated(int)), this, SLOT(slotSetDirty()));
    
    populateLanguageBox();

    //the language code/name
    KConfig entry(KStandardDirs::locate("locale", "all_languages"));
    QString code = KanagramSettings::dataLanguage();
    KConfigGroup group = entry.group(code);
    // select the current language
    languageComboBox->setCurrentIndex(languageComboBox->findText(group.readEntry("Name")));
}

Here is the call graph for this function:


Generated by  Doxygen 1.6.0   Back to index