QTfrontend/game.cpp
changeset 6937 7f77fa908a4e
parent 6700 e04da46ee43c
child 6952 7f70f37bbf08
equal deleted inserted replaced
6936:8af2bf10ee62 6937:7f77fa908a4e
   113 }
   113 }
   114 
   114 
   115 void HWGame::SendQuickConfig()
   115 void HWGame::SendQuickConfig()
   116 {
   116 {
   117     QByteArray teamscfg;
   117     QByteArray teamscfg;
       
   118     ThemeModel * themeModel = DataManager::instance().themeModel();
   118 
   119 
   119     HWProto::addStringToBuffer(teamscfg, "TL");
   120     HWProto::addStringToBuffer(teamscfg, "TL");
   120     HWProto::addStringToBuffer(teamscfg, QString("etheme %1")
   121     HWProto::addStringToBuffer(teamscfg, QString("etheme %1")
   121                                .arg((themesModel->rowCount() > 0) ? themesModel->index(rand() % themesModel->rowCount()).data().toString() : "steel"));
   122                                .arg((themeModel->rowCount() > 0) ? themeModel->index(rand() % themeModel->rowCount()).data().toString() : "steel"));
   122     HWProto::addStringToBuffer(teamscfg, "eseed " + QUuid::createUuid().toString());
   123     HWProto::addStringToBuffer(teamscfg, "eseed " + QUuid::createUuid().toString());
   123 
   124 
   124     HWTeam team1;
   125     HWTeam team1;
   125     team1.setDifficulty(0);
   126     team1.setDifficulty(0);
   126     team1.setColor(QColor(colors[0]));
   127     team1.setColor(QColor(colors[0]));