61 |
61 |
62 QLayout * PageNetGame::footerLayoutDefinition() |
62 QLayout * PageNetGame::footerLayoutDefinition() |
63 { |
63 { |
64 QHBoxLayout * bottomLayout = new QHBoxLayout; |
64 QHBoxLayout * bottomLayout = new QHBoxLayout; |
65 |
65 |
|
66 btnDLC = addButton(tr("DLC"), bottomLayout, 0); |
|
67 btnDLC->setWhatsThis(tr("Downloadable Content")); |
|
68 |
66 leRoomName = new HistoryLineEdit(this,10); |
69 leRoomName = new HistoryLineEdit(this,10); |
67 leRoomName->setMaxLength(60); |
70 leRoomName->setMaxLength(60); |
68 leRoomName->setMinimumWidth(200); |
71 leRoomName->setMinimumWidth(200); |
69 leRoomName->setMaximumWidth(400); |
72 leRoomName->setMaximumWidth(400); |
70 |
73 |
75 BtnGo->setIconSize(QSize(25, 34)); |
78 BtnGo->setIconSize(QSize(25, 34)); |
76 BtnGo->setMinimumWidth(50); |
79 BtnGo->setMinimumWidth(50); |
77 BtnGo->setMinimumHeight(50); |
80 BtnGo->setMinimumHeight(50); |
78 |
81 |
79 bottomLayout->addWidget(leRoomName); |
82 bottomLayout->addWidget(leRoomName); |
80 BtnUpdate = addButton(QAction::tr("Update"), bottomLayout, 1); |
83 BtnUpdate = addButton(QAction::tr("Update"), bottomLayout, 2); |
81 |
84 |
82 bottomLayout->addStretch(); |
85 bottomLayout->addStretch(); |
83 bottomLayout->addWidget(BtnGo); |
86 bottomLayout->addWidget(BtnGo); |
84 |
87 |
85 BtnMaster = addButton(tr("Control"), bottomLayout, 3); |
88 BtnMaster = addButton(tr("Control"), bottomLayout, 4); |
86 bottomLayout->insertStretch(3, 100); |
89 bottomLayout->insertStretch(3, 100); |
87 |
90 |
88 BtnStart = addButton(QAction::tr("Start"), bottomLayout, 3); |
91 BtnStart = addButton(QAction::tr("Start"), bottomLayout, 4); |
89 |
92 |
90 return bottomLayout; |
93 return bottomLayout; |
91 } |
94 } |
92 |
95 |
93 void PageNetGame::connectSignals() |
96 void PageNetGame::connectSignals() |
94 { |
97 { |
|
98 connect(btnDLC, SIGNAL(clicked()), this, SIGNAL(DLCClicked())); |
|
99 |
95 connect(btnSetup, SIGNAL(clicked()), this, SIGNAL(SetupClicked())); |
100 connect(btnSetup, SIGNAL(clicked()), this, SIGNAL(SetupClicked())); |
96 |
101 |
97 connect(BtnUpdate, SIGNAL(clicked()), this, SLOT(onUpdateClick())); |
102 connect(BtnUpdate, SIGNAL(clicked()), this, SLOT(onUpdateClick())); |
98 } |
103 } |
99 |
104 |