equal
deleted
inserted
replaced
47 |
47 |
48 //BtnNet = addButton(":/res/NetworkPlay.png", (QBoxLayout*)netLayout, 1, true); |
48 //BtnNet = addButton(":/res/NetworkPlay.png", (QBoxLayout*)netLayout, 1, true); |
49 BtnNet = addButton(":/res/NetworkPlay.png", pageLayout, 2, 2, 1, 2, true); |
49 BtnNet = addButton(":/res/NetworkPlay.png", pageLayout, 2, 2, 1, 2, true); |
50 BtnNet->setWhatsThis(tr("Play a game across a network")); |
50 BtnNet->setWhatsThis(tr("Play a game across a network")); |
51 pageLayout->setAlignment(BtnNet, Qt::AlignHCenter); |
51 pageLayout->setAlignment(BtnNet, Qt::AlignHCenter); |
52 connect(BtnNet, SIGNAL(clicked()), this, SLOT(toggleNetworkChoice())); |
|
53 |
52 |
54 originalNetworkIcon = BtnNet->icon(); |
53 originalNetworkIcon = BtnNet->icon(); |
55 disabledNetworkIcon = QIcon(":/res/NetworkPlayDisabled.png"); |
54 disabledNetworkIcon = QIcon(":/res/NetworkPlayDisabled.png"); |
56 |
55 |
57 //QWidget *netLayoutWidget = new QWidget(); |
56 //QWidget *netLayoutWidget = new QWidget(); |
118 return bottomLayout; |
117 return bottomLayout; |
119 } |
118 } |
120 |
119 |
121 void PageMain::connectSignals() |
120 void PageMain::connectSignals() |
122 { |
121 { |
123 //TODO |
122 connect(BtnNet, SIGNAL(clicked()), this, SLOT(toggleNetworkChoice())); |
|
123 // TODO: add signal-forwarding required by (currently missing) encapsulation |
124 } |
124 } |
125 |
125 |
126 PageMain::PageMain(QWidget* parent) : AbstractPage(parent) |
126 PageMain::PageMain(QWidget* parent) : AbstractPage(parent) |
127 { |
127 { |
128 initPage(); |
128 initPage(); |