equal
deleted
inserted
replaced
18 |
18 |
19 #include <QString> |
19 #include <QString> |
20 #include <QByteArray> |
20 #include <QByteArray> |
21 #include <QUuid> |
21 #include <QUuid> |
22 #include <QColor> |
22 #include <QColor> |
|
23 #include <QStringListModel> |
23 |
24 |
24 #include "game.h" |
25 #include "game.h" |
25 #include "hwconsts.h" |
26 #include "hwconsts.h" |
26 #include "gameuiconfig.h" |
27 #include "gameuiconfig.h" |
27 #include "gamecfgwidget.h" |
28 #include "gamecfgwidget.h" |
108 { |
109 { |
109 QByteArray teamscfg; |
110 QByteArray teamscfg; |
110 |
111 |
111 HWProto::addStringToBuffer(teamscfg, "TL"); |
112 HWProto::addStringToBuffer(teamscfg, "TL"); |
112 HWProto::addStringToBuffer(teamscfg, QString("etheme %1") |
113 HWProto::addStringToBuffer(teamscfg, QString("etheme %1") |
113 .arg((Themes->size() > 0) ? Themes->at(rand() % Themes->size()) : "steel")); |
114 .arg((themesModel->rowCount() > 0) ? themesModel->index(rand() % themesModel->rowCount()).data().toString() : "steel")); |
114 HWProto::addStringToBuffer(teamscfg, "eseed " + QUuid::createUuid().toString()); |
115 HWProto::addStringToBuffer(teamscfg, "eseed " + QUuid::createUuid().toString()); |
115 |
116 |
116 HWNamegen namegen; |
117 HWNamegen namegen; |
117 |
118 |
118 HWTeam * team1; |
119 HWTeam * team1; |