QTfrontend/ui/page/pagenetgame.cpp
changeset 11809 f412d539284e
parent 11757 6874644a2d00
child 11811 f9a4f4d11c3a
equal deleted inserted replaced
11808:ffe6e1344ebd 11809:f412d539284e
   123     QHBoxLayout * bottomLayout = new QHBoxLayout;
   123     QHBoxLayout * bottomLayout = new QHBoxLayout;
   124 
   124 
   125     // Ready button
   125     // Ready button
   126 
   126 
   127     BtnGo = new QPushButton(this);
   127     BtnGo = new QPushButton(this);
   128     BtnGo->setIcon(QIcon(":/res/lightbulb_off.png"));
       
   129     BtnGo->setIconSize(QSize(25, 34));
   128     BtnGo->setIconSize(QSize(25, 34));
       
   129     setReadyStatus(false);
   130     BtnGo->setMinimumWidth(50);
   130     BtnGo->setMinimumWidth(50);
   131     BtnGo->setMinimumHeight(50);
   131     BtnGo->setMinimumHeight(50);
   132 
   132 
   133     bottomLayout->addStretch();
   133     bottomLayout->addStretch();
   134     bottomLayout->addWidget(BtnGo);
   134     bottomLayout->addWidget(BtnGo);
   215 
   215 
   216 
   216 
   217 void PageNetGame::setReadyStatus(bool isReady)
   217 void PageNetGame::setReadyStatus(bool isReady)
   218 {
   218 {
   219     if(isReady)
   219     if(isReady)
       
   220     {
   220         BtnGo->setIcon(QIcon(":/res/lightbulb_on.png"));
   221         BtnGo->setIcon(QIcon(":/res/lightbulb_on.png"));
       
   222         BtnGo->setWhatsThis(tr("You are ready for action! Click on the lightbulb if you are not ready."));
       
   223     }
   221     else
   224     else
       
   225     {
   222         BtnGo->setIcon(QIcon(":/res/lightbulb_off.png"));
   226         BtnGo->setIcon(QIcon(":/res/lightbulb_off.png"));
       
   227         BtnGo->setWhatsThis(tr("You're not ready for action yet. Turn on the lightbulb when you're ready so other players will know this."));
       
   228     }
   223 }
   229 }
   224 
   230 
   225 void PageNetGame::onRoomNameEdited()
   231 void PageNetGame::onRoomNameEdited()
   226 {
   232 {
   227     BtnUpdate->setEnabled(true);
   233     BtnUpdate->setEnabled(true);