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

void QStarDict::DictCore::loadSettings (  )  [private]

Load settings.

Definition at line 190 of file dictcore.cpp.

References availableDicts(), availablePlugins(), setLoadedDicts(), and setLoadedPlugins().

Referenced by DictCore().

{
    QSettings config;
    setLoadedPlugins(config.value("DictCore/loadedPlugins", availablePlugins()).toStringList());
    QStringList rawDictsList = config.value("DictCore/loadedDicts").toStringList();
    if (rawDictsList.isEmpty())
        setLoadedDicts(availableDicts());
    else
    {
        QList<Dictionary> dicts;
        for (QStringList::const_iterator i = rawDictsList.begin(); i != rawDictsList.end(); i += 2)
            dicts << Dictionary(*i, *(i + 1));
        setLoadedDicts(dicts);
    }
}


Generated by  Doxygen 1.6.0   Back to index