259 QDir tmpdir; |
259 QDir tmpdir; |
260 tmpdir.cd(datadir->absolutePath()); |
260 tmpdir.cd(datadir->absolutePath()); |
261 tmpdir.cd("Forts"); |
261 tmpdir.cd("Forts"); |
262 tmpdir.setFilter(QDir::Files); |
262 tmpdir.setFilter(QDir::Files); |
263 |
263 |
264 CBFort->addItems(tmpdir.entryList(QStringList("*L.png")).replaceInStrings(QRegExp("^(.*)L.png"), "\\1")); |
264 CBFort->addItems(tmpdir.entryList(QStringList("*L.png")).replaceInStrings(QRegExp("^(.*)L\\.png"), "\\1")); |
265 tmpdir.cd("../Graphics/Graves"); |
265 tmpdir.cd("../Graphics/Graves"); |
266 QStringList list = tmpdir.entryList(QStringList("*.png")); |
266 QStringList list = tmpdir.entryList(QStringList("*.png")); |
267 for (QStringList::Iterator it = list.begin(); it != list.end(); ++it ) |
267 for (QStringList::Iterator it = list.begin(); it != list.end(); ++it ) |
268 { |
268 { |
269 CBGrave->addItem((*it).replace(QRegExp("^(.*).png"), "\\1")); |
269 CBGrave->addItem((*it).replace(QRegExp("^(.*)\\.png"), "\\1")); |
270 } |
270 } |
271 |
271 |
272 connect(CBGrave, SIGNAL(activated(const QString &)), this, SLOT(CBGrave_activated(const QString &))); |
272 connect(CBGrave, SIGNAL(activated(const QString &)), this, SLOT(CBGrave_activated(const QString &))); |
273 connect(CBTeamLvl, SIGNAL(activated(int)), this, SLOT(CBTeamLvl_activated(int))); |
273 connect(CBTeamLvl, SIGNAL(activated(int)), this, SLOT(CBTeamLvl_activated(int))); |
274 connect(CBFort, SIGNAL(activated(const QString &)), this, SLOT(CBFort_activated(const QString &))); |
274 connect(CBFort, SIGNAL(activated(const QString &)), this, SLOT(CBFort_activated(const QString &))); |