--- a/QTfrontend/hwform.cpp Thu Feb 23 12:58:17 2012 -0500
+++ b/QTfrontend/hwform.cpp Thu Feb 23 22:58:52 2012 +0400
@@ -1041,7 +1041,7 @@
//connect(ui.pageNetGame->BtnBack, SIGNAL(clicked()), hwnet, SLOT(partRoom()));
// rooms list page stuff
- ui.pageRoomsList->roomsList->setModel(hwnet->roomsListModel());
+ ui.pageRoomsList->setModel(hwnet->roomsListModel());
connect(hwnet, SIGNAL(adminAccess(bool)),
ui.pageRoomsList, SLOT(setAdmin(bool)), Qt::QueuedConnection);
connect(hwnet, SIGNAL(adminAccess(bool)),
--- a/QTfrontend/net/newnetclient.cpp Thu Feb 23 12:58:17 2012 -0500
+++ b/QTfrontend/net/newnetclient.cpp Thu Feb 23 22:58:52 2012 +0400
@@ -257,7 +257,7 @@
}
RawSendNet(QString("NICK%1%2").arg(delimeter).arg(mynick));
- RawSendNet(QString("PROTO%1%2").arg(delimeter).arg("41"));
+ RawSendNet(QString("PROTO%1%2").arg(delimeter).arg(*cProtoVer));
netClientState = Connected;
m_game_connected = true;
emit adminAccess(false);
--- a/QTfrontend/ui/page/pageroomslist.cpp Thu Feb 23 12:58:17 2012 -0500
+++ b/QTfrontend/ui/page/pageroomslist.cpp Thu Feb 23 22:58:52 2012 +0400
@@ -485,3 +485,17 @@
{
chatWidget->setUser(nickname);
}
+
+void PageRoomsList::setModel(QAbstractTableModel *model)
+{
+ roomsList->setModel(model);
+
+ QHeaderView * h = roomsList->horizontalHeader();
+ h->resizeSection(0, 200);
+ h->resizeSection(1, 50);
+ h->resizeSection(2, 50);
+ h->resizeSection(3, 100);
+ h->resizeSection(4, 100);
+ h->resizeSection(5, 100);
+ h->resizeSection(6, 100);
+}
--- a/QTfrontend/ui/page/pageroomslist.h Thu Feb 23 12:58:17 2012 -0500
+++ b/QTfrontend/ui/page/pageroomslist.h Thu Feb 23 22:58:52 2012 +0400
@@ -49,6 +49,8 @@
HWChatWidget * chatWidget;
QLabel * lblCount;
+ void setModel(QAbstractTableModel * model);
+
public slots:
void setAdmin(bool);
void setUser(const QString & nickname);