equal
deleted
inserted
replaced
133 gameInLobby = false; |
133 gameInLobby = false; |
134 } |
134 } |
135 |
135 |
136 void PageRoomsList::setAdmin(bool flag) |
136 void PageRoomsList::setAdmin(bool flag) |
137 { |
137 { |
138 //BtnAdmin->setVisible(flag); |
138 BtnAdmin->setVisible(flag); |
139 } |
139 } |
140 |
140 |
141 void PageRoomsList::setRoomsList(const QStringList & list) |
141 void PageRoomsList::setRoomsList(const QStringList & list) |
142 { |
142 { |
143 QBrush red(QColor(255, 0, 0)); |
143 QBrush red(QColor(255, 0, 0)); |
150 QString selection = ""; |
150 QString selection = ""; |
151 |
151 |
152 if(QTableWidgetItem *item = roomsList->item(roomsList->currentRow(), 0)) |
152 if(QTableWidgetItem *item = roomsList->item(roomsList->currentRow(), 0)) |
153 selection = item->text(); |
153 selection = item->text(); |
154 |
154 |
155 //roomsList->clear(); |
155 roomsList->clear(); |
156 roomsList->setColumnCount(7); |
156 roomsList->setColumnCount(7); |
157 roomsList->setHorizontalHeaderLabels( |
157 roomsList->setHorizontalHeaderLabels( |
158 QStringList() << |
158 QStringList() << |
159 QTableWidget::tr("Room Name") << |
159 QTableWidget::tr("Room Name") << |
160 QTableWidget::tr("C") << |
160 QTableWidget::tr("C") << |