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

void KanagramGame::loadDefaultVocab (  ) [slot]

load the default vocab file

open returns KEduVocDocument::ErrorCode

Definition at line 64 of file kanagramgame.cpp.

References m_doc, m_filename, nextAnagram(), nextVocab(), and refreshVocabList().

Referenced by KanagramGame().

    m_filename = KanagramSettings::defaultVocab();
    if (m_filename.isEmpty() || !QFileInfo(m_filename).exists())

    delete m_doc;
    m_doc = new KEduVocDocument(this);

    ///@todo open returns KEduVocDocument::ErrorCode
    int result = m_doc->open(KUrl(KStandardDirs::locate("data", m_filename)));
    if (result != 0) {
        KMessageBox::error(0, m_doc->errorDescription(result));

Here is the call graph for this function:

Here is the caller graph for this function:

Generated by  Doxygen 1.6.0   Back to index