QTfrontend/pages.cpp
changeset 2447 08d623a494e6
parent 2443 fececcbc2189
child 2468 0b62498c201a
equal deleted inserted replaced
2446:cbb3af76bcc0 2447:08d623a494e6
   833 			QTableWidget::tr("Map") <<
   833 			QTableWidget::tr("Map") <<
   834 			QTableWidget::tr("Rules") <<
   834 			QTableWidget::tr("Rules") <<
   835 			QTableWidget::tr("Weapons")
   835 			QTableWidget::tr("Weapons")
   836 			);
   836 			);
   837 
   837 
       
   838 	// set minimum sizes
       
   839 	roomsList->horizontalHeader()->resizeSection(0, 200);
       
   840 	roomsList->horizontalHeader()->resizeSection(1, 50);
       
   841 	roomsList->horizontalHeader()->resizeSection(2, 50);
       
   842 	roomsList->horizontalHeader()->resizeSection(3, 100);
       
   843 	roomsList->horizontalHeader()->resizeSection(4, 100);
       
   844 	roomsList->horizontalHeader()->resizeSection(5, 100);
       
   845 	roomsList->horizontalHeader()->resizeSection(6, 100);
       
   846 
   838 	// set resize modes
   847 	// set resize modes
   839 	roomsList->horizontalHeader()->setResizeMode(0, QHeaderView::Stretch);
   848 	roomsList->horizontalHeader()->setResizeMode(QHeaderView::Interactive);
   840 	roomsList->horizontalHeader()->setResizeMode(1, QHeaderView::ResizeToContents);
       
   841 	roomsList->horizontalHeader()->setResizeMode(2, QHeaderView::ResizeToContents);
       
   842 	roomsList->horizontalHeader()->setResizeMode(3, QHeaderView::ResizeToContents);
       
   843 	roomsList->horizontalHeader()->setResizeMode(4, QHeaderView::ResizeToContents);
       
   844 	roomsList->horizontalHeader()->setResizeMode(5, QHeaderView::ResizeToContents);
       
   845 	roomsList->horizontalHeader()->setResizeMode(6, QHeaderView::ResizeToContents);
       
   846 
   849 
   847 	if (list.size() % 8)
   850 	if (list.size() % 8)
   848 		return;
   851 		return;
   849 
   852 
   850 	roomsList->setRowCount(list.size() / 8);
   853 	roomsList->setRowCount(list.size() / 8);