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