equal
deleted
inserted
replaced
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])); |