99 pageLayout->addWidget(chatWidget, 5, 0, 1, 3); |
99 pageLayout->addWidget(chatWidget, 5, 0, 1, 3); |
100 pageLayout->setRowStretch(5, 350); |
100 pageLayout->setRowStretch(5, 350); |
101 |
101 |
102 BtnCreate = addButton(tr("Create"), pageLayout, 0, 2); |
102 BtnCreate = addButton(tr("Create"), pageLayout, 0, 2); |
103 BtnJoin = addButton(tr("Join"), pageLayout, 1, 2); |
103 BtnJoin = addButton(tr("Join"), pageLayout, 1, 2); |
104 BtnRefresh = addButton(tr("Refresh"), pageLayout, 3, 2); |
|
105 BtnClear = addButton(tr("Clear"), pageLayout, 4, 2); |
104 BtnClear = addButton(tr("Clear"), pageLayout, 4, 2); |
106 |
105 |
107 // strech all but the buttons column |
106 // strech all but the buttons column |
108 pageLayout->setColumnStretch(0, 1); |
107 pageLayout->setColumnStretch(0, 1); |
109 pageLayout->setColumnStretch(1, 1); |
108 pageLayout->setColumnStretch(1, 1); |
141 { |
140 { |
142 connect(chatWidget, SIGNAL(nickCountUpdate(const int)), this, SLOT(updateNickCounter(const int))); |
141 connect(chatWidget, SIGNAL(nickCountUpdate(const int)), this, SLOT(updateNickCounter(const int))); |
143 |
142 |
144 connect(BtnCreate, SIGNAL(clicked()), this, SLOT(onCreateClick())); |
143 connect(BtnCreate, SIGNAL(clicked()), this, SLOT(onCreateClick())); |
145 connect(BtnJoin, SIGNAL(clicked()), this, SLOT(onJoinClick())); |
144 connect(BtnJoin, SIGNAL(clicked()), this, SLOT(onJoinClick())); |
146 connect(BtnRefresh, SIGNAL(clicked()), this, SLOT(onRefreshClick())); |
|
147 connect(BtnClear, SIGNAL(clicked()), this, SLOT(onClearClick())); |
145 connect(BtnClear, SIGNAL(clicked()), this, SLOT(onClearClick())); |
148 connect(roomsList, SIGNAL(doubleClicked (const QModelIndex &)), this, SLOT(onJoinClick())); |
146 connect(roomsList, SIGNAL(doubleClicked (const QModelIndex &)), this, SLOT(onJoinClick())); |
149 connect(CBState, SIGNAL(currentIndexChanged (int)), this, SLOT(onFilterChanged())); |
147 connect(CBState, SIGNAL(currentIndexChanged (int)), this, SLOT(onFilterChanged())); |
150 connect(CBRules, SIGNAL(currentIndexChanged (int)), this, SLOT(onFilterChanged())); |
148 connect(CBRules, SIGNAL(currentIndexChanged (int)), this, SLOT(onFilterChanged())); |
151 connect(CBWeapons, SIGNAL(currentIndexChanged (int)), this, SLOT(onFilterChanged())); |
149 connect(CBWeapons, SIGNAL(currentIndexChanged (int)), this, SLOT(onFilterChanged())); |