--- 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);
+}