QTfrontend/ui/page/pagemain.cpp
changeset 8435 a59368bd49e7
parent 8434 4821897a0f10
child 8444 75db7bb8dce8
child 8622 2045bdf1b11b
--- a/QTfrontend/ui/page/pagemain.cpp	Fri Jan 25 13:59:27 2013 +0100
+++ b/QTfrontend/ui/page/pagemain.cpp	Fri Jan 25 14:19:55 2013 +0100
@@ -49,7 +49,6 @@
     BtnNet = addButton(":/res/NetworkPlay.png", pageLayout, 2, 2, 1, 2, true);
     BtnNet->setWhatsThis(tr("Play a game across a network"));
     pageLayout->setAlignment(BtnNet, Qt::AlignHCenter);
-    connect(BtnNet, SIGNAL(clicked()), this, SLOT(toggleNetworkChoice()));
 
     originalNetworkIcon = BtnNet->icon();
     disabledNetworkIcon = QIcon(":/res/NetworkPlayDisabled.png");
@@ -120,7 +119,8 @@
 
 void PageMain::connectSignals()
 {
-    //TODO
+    connect(BtnNet, SIGNAL(clicked()), this, SLOT(toggleNetworkChoice()));
+    // TODO: add signal-forwarding required by (currently missing) encapsulation
 }
 
 PageMain::PageMain(QWidget* parent) : AbstractPage(parent)