QTfrontend/game.cpp
branch0.9.19
changeset 9124 955a90b88865
parent 9080 9b42757d7e71
child 9197 e4e366013e9a
child 9249 7b8c82785145
equal deleted inserted replaced
9123:19c57656460f 9124:955a90b88865
   151 
   151 
   152     addKeyBindings(&teamscfg);
   152     addKeyBindings(&teamscfg);
   153 
   153 
   154     HWProto::addStringToBuffer(teamscfg, "TL");
   154     HWProto::addStringToBuffer(teamscfg, "TL");
   155     HWProto::addStringToBuffer(teamscfg, QString("etheme %1")
   155     HWProto::addStringToBuffer(teamscfg, QString("etheme %1")
   156                                .arg((themeModel->rowCount() > 0) ? themeModel->index(rand() % themeModel->rowCount()).data().toString() : "steel"));
   156                                .arg((themeModel->rowCount() > 0) ? themeModel->index(rand() % themeModel->rowCount()).data(ThemeModel::ActualNameRole).toString() : "steel"));
   157     HWProto::addStringToBuffer(teamscfg, "eseed " + QUuid::createUuid().toString());
   157     HWProto::addStringToBuffer(teamscfg, "eseed " + QUuid::createUuid().toString());
   158 
   158 
   159     HWProto::addStringToBuffer(teamscfg, "e$template_filter 2");
   159     HWProto::addStringToBuffer(teamscfg, "e$template_filter 2");
   160 
   160 
   161     HWTeam team1;
   161     HWTeam team1;