/bike.cpp |
---|
232,11 → 232,11 |
{ |
colour.setRed(list[1].toInt()); |
} |
else if (list.count() >= 3) |
if (list.count() >= 3) |
{ |
colour.setGreen(list[2].toInt()); |
} |
else if (list.count() >= 4) |
if (list.count() >= 4) |
{ |
colour.setBlue(list[3].toInt()); |
} |
/bike.h |
---|
32,11 → 32,11 |
int id; |
bool isDisconnected; |
bool hasHadGo; |
QColor colour; |
private: |
QTcpSocket *socket; |
float velocity; |
QColor colour; |
private slots: |
void readyRead(); |