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

void KanagramGame::useVocab ( const QString &  vocabname ) [slot]

set the vocab to use

Definition at line 101 of file kanagramgame.cpp.

References getVocabsList(), m_fileList, m_filename, and m_index.

Referenced by refreshVocabList().

{
    QStringList titles = getVocabsList();
    int vocab = titles.indexOf(vocabname);
    if (vocab > 0)
    {
        m_index = vocab;
        m_filename = m_fileList[vocab];
    }
    else
    {
        m_index = 0;
        m_filename = m_fileList[0];
    }
}

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