QTfrontend/pages.cpp
changeset 1893 85c61bc5e160
parent 1891 47e832a88cbd
child 1894 ba54441631da
--- a/QTfrontend/pages.cpp	Sun Mar 15 12:59:52 2009 +0000
+++ b/QTfrontend/pages.cpp	Sun Mar 15 14:36:14 2009 +0000
@@ -760,7 +760,6 @@
 	roomsList->setSelectionBehavior(QAbstractItemView::SelectRows);
 	roomsList->verticalHeader()->setVisible(false);
 	roomsList->horizontalHeader()->setResizeMode(QHeaderView::Interactive);
-	roomsList->horizontalHeader()->setResizeMode(0, QHeaderView::Stretch);
 	pageLayout->addWidget(roomsList, 1, 0, 3, 1);
 	pageLayout->setRowStretch(2, 100);
 	
@@ -795,6 +794,11 @@
 			QTableWidget::tr("Players number") <<
 			QTableWidget::tr("Round in progress")
 			);
+
+   roomsList->horizontalHeader()->setResizeMode(0, QHeaderView::Stretch);
+   roomsList->horizontalHeader()->setResizeMode(1, QHeaderView::ResizeToContents);
+   roomsList->horizontalHeader()->setResizeMode(2, QHeaderView::ResizeToContents);
+
 	
 	if (list.size() % 3)
 		return;