QTfrontend/pages.cpp
changeset 1648 32d99a3c7998
parent 1647 ab0c8c4be7b3
child 1649 938a0fda0206
--- a/QTfrontend/pages.cpp	Mon Jan 12 16:36:29 2009 +0000
+++ b/QTfrontend/pages.cpp	Mon Jan 12 16:38:52 2009 +0000
@@ -556,7 +556,9 @@
 
 	BtnGo = new QPushButton(this);
 	BtnGo->setFont(*font14);
-	BtnGo->setText(QPushButton::tr("Ready"));
+	//BtnGo->setText(QPushButton::tr("Ready"));
+	BtnGo->setIcon(QIcon(":/res/lightbulb_off.png"));
+	BtnGo->setIconSize(QSize(25, 34));
 	pageLayout->addWidget(BtnGo, 3, 1);
 
 	BtnBack = addButton(":/res/Exit.png", pageLayout, 3, 0, true);
@@ -575,6 +577,14 @@
 	BtnMaster->setMenu(menu);
 }
 
+void PageNetGame::setReadyStatus(bool isReady)
+{
+	if(isReady)
+		BtnGo->setIcon(QIcon(":/res/lightbulb_on.png"));
+	else
+		BtnGo->setIcon(QIcon(":/res/lightbulb_off.png"));
+}
+
 PageInfo::PageInfo(QWidget* parent) : AbstractPage(parent)
 {
 	QFont * font14 = new QFont("MS Shell Dlg", 14);