equal
deleted
inserted
replaced
92 } |
92 } |
93 } |
93 } |
94 |
94 |
95 QStringList GameUIConfig::GetTeamsList() |
95 QStringList GameUIConfig::GetTeamsList() |
96 { |
96 { |
97 return cfgdir->entryList(QStringList("*.cfg")); |
97 QStringList teamslist = cfgdir->entryList(QStringList("*.cfg")); |
|
98 QStringList cleanedList; |
|
99 for (QStringList::Iterator it = teamslist.begin(); it != teamslist.end(); ++it ) { |
|
100 QString tmpTeamStr=(*it).replace(QRegExp("^(.*).cfg$"), "\\1"); |
|
101 cleanedList.push_back(tmpTeamStr); |
|
102 } |
|
103 return cleanedList; |
98 } |
104 } |
99 |
105 |
100 void GameUIConfig::SaveOptions() |
106 void GameUIConfig::SaveOptions() |
101 { |
107 { |
102 QFile settings(cfgdir->absolutePath() + "/options"); |
108 QFile settings(cfgdir->absolutePath() + "/options"); |