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