QTfrontend/ui/page/pageroomslist.cpp
changeset 6735 050237b1500f
parent 6732 c906dc78091f
child 6736 efad396abee9
--- 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);
+}