small cleanup
authorsheepluva
Fri, 25 Jan 2013 14:19:55 +0100
changeset 8435 a59368bd49e7
parent 8434 4821897a0f10
child 8436 b89aacebb9db
small cleanup
QTfrontend/ui/page/pagemain.cpp
--- 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)