QTfrontend/game.cpp
branchwebgl
changeset 9197 e4e366013e9a
parent 9127 e350500c4edb
parent 9124 955a90b88865
child 9521 8054d9d775fd
equal deleted inserted replaced
9168:20ff80421736 9197:e4e366013e9a
   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;