QTfrontend/hwform.cpp
changeset 8504 9ff55b527d1b
parent 8489 25cb6f4a1d1b
child 8529 124b49fa408b
equal deleted inserted replaced
8503:e60c84b42f4d 8504:9ff55b527d1b
  1192 
  1192 
  1193     hwnet = new HWNewNet();
  1193     hwnet = new HWNewNet();
  1194 
  1194 
  1195     GoToPage(ID_PAGE_CONNECTING);
  1195     GoToPage(ID_PAGE_CONNECTING);
  1196 
  1196 
  1197     connect(hwnet, SIGNAL(AskForRunGame()), this, SLOT(CreateNetGame()));
  1197     connect(hwnet, SIGNAL(AskForRunGame()), this, SLOT(CreateNetGame()), Qt::QueuedConnection);
  1198     connect(hwnet, SIGNAL(connected()), this, SLOT(NetConnected()), Qt::QueuedConnection);
  1198     connect(hwnet, SIGNAL(connected()), this, SLOT(NetConnected()), Qt::QueuedConnection);
  1199     connect(hwnet, SIGNAL(Error(const QString&)), this, SLOT(NetError(const QString&)), Qt::QueuedConnection);
  1199     connect(hwnet, SIGNAL(Error(const QString&)), this, SLOT(NetError(const QString&)), Qt::QueuedConnection);
  1200     connect(hwnet, SIGNAL(Warning(const QString&)), this, SLOT(NetWarning(const QString&)), Qt::QueuedConnection);
  1200     connect(hwnet, SIGNAL(Warning(const QString&)), this, SLOT(NetWarning(const QString&)), Qt::QueuedConnection);
  1201     connect(hwnet, SIGNAL(EnteredGame()), this, SLOT(NetGameEnter()), Qt::QueuedConnection);
  1201     connect(hwnet, SIGNAL(EnteredGame()), this, SLOT(NetGameEnter()), Qt::QueuedConnection);
  1202     connect(hwnet, SIGNAL(LeftRoom(const QString&)), this, SLOT(NetLeftRoom(const QString&)), Qt::QueuedConnection);
  1202     connect(hwnet, SIGNAL(LeftRoom(const QString&)), this, SLOT(NetLeftRoom(const QString&)), Qt::QueuedConnection);
  1232 //      this, SLOT(NetGameSlave()));
  1232 //      this, SLOT(NetGameSlave()));
  1233     connect(ui.pageRoomsList, SIGNAL(askForRoomList()),
  1233     connect(ui.pageRoomsList, SIGNAL(askForRoomList()),
  1234             hwnet, SLOT(askRoomsList()));
  1234             hwnet, SLOT(askRoomsList()));
  1235 
  1235 
  1236 // room status stuff
  1236 // room status stuff
       
  1237 // not queued because creates new signal/slot connection
  1237     connect(hwnet, SIGNAL(roomMaster(bool)),
  1238     connect(hwnet, SIGNAL(roomMaster(bool)),
  1238             this, SLOT(NetGameChangeStatus(bool)), Qt::QueuedConnection);
  1239             this, SLOT(NetGameChangeStatus(bool)));
  1239 
  1240 
  1240 // net page stuff
  1241 // net page stuff
  1241     connect(hwnet, SIGNAL(roomNameUpdated(const QString &)),
  1242     connect(hwnet, SIGNAL(roomNameUpdated(const QString &)),
  1242             ui.pageNetGame, SLOT(setRoomName(const QString &)));
  1243             ui.pageNetGame, SLOT(setRoomName(const QString &)));
  1243     connect(hwnet, SIGNAL(chatStringFromNet(const QString&)),
  1244     connect(hwnet, SIGNAL(chatStringFromNet(const QString&)),