QTfrontend/gameuiconfig.cpp
branchexperimental3D
changeset 4844 20b81fafd236
parent 4812 f924be23ffb4
parent 4817 cd7ef863afca
child 4976 088d40d8aba2
equal deleted inserted replaced
4818:202eef454354 4844:20b81fafd236
    92 
    92 
    93 QStringList GameUIConfig::GetTeamsList()
    93 QStringList GameUIConfig::GetTeamsList()
    94 {
    94 {
    95     QDir teamdir;
    95     QDir teamdir;
    96     teamdir.cd(cfgdir->absolutePath() + "/Teams");
    96     teamdir.cd(cfgdir->absolutePath() + "/Teams");
    97     QStringList teamslist = teamdir.entryList(QStringList("*.hwt"));
    97     QStringList teamslist = teamdir.entryList(QStringList("*.hwt"),QDir::Files|QDir::Hidden);
    98     QStringList cleanedList;
    98     QStringList cleanedList;
    99     for (QStringList::Iterator it = teamslist.begin(); it != teamslist.end(); ++it ) {
    99     for (QStringList::Iterator it = teamslist.begin(); it != teamslist.end(); ++it ) {
   100             QString tmpTeamStr=(*it).replace(QRegExp("^(.*)\\.hwt$"), "\\1");
   100             QString tmpTeamStr=(*it).replace(QRegExp("^(.*)\\.hwt$"), "\\1");
   101             cleanedList.push_back(tmpTeamStr);
   101             cleanedList.push_back(tmpTeamStr);
   102     }
   102     }