--- a/QTfrontend/pages.cpp Sun Nov 29 18:30:21 2009 +0000
+++ b/QTfrontend/pages.cpp Sun Nov 29 18:54:24 2009 +0000
@@ -835,16 +835,24 @@
);
// set minimum sizes
- roomsList->horizontalHeader()->resizeSection(0, 200);
- roomsList->horizontalHeader()->resizeSection(1, 50);
- roomsList->horizontalHeader()->resizeSection(2, 50);
- roomsList->horizontalHeader()->resizeSection(3, 100);
- roomsList->horizontalHeader()->resizeSection(4, 100);
- roomsList->horizontalHeader()->resizeSection(5, 100);
- roomsList->horizontalHeader()->resizeSection(6, 100);
+// roomsList->horizontalHeader()->resizeSection(0, 200);
+// roomsList->horizontalHeader()->resizeSection(1, 50);
+// roomsList->horizontalHeader()->resizeSection(2, 50);
+// roomsList->horizontalHeader()->resizeSection(3, 100);
+// roomsList->horizontalHeader()->resizeSection(4, 100);
+// roomsList->horizontalHeader()->resizeSection(5, 100);
+// roomsList->horizontalHeader()->resizeSection(6, 100);
+
+ roomsList->horizontalHeader()->setResizeMode(0, QHeaderView::Stretch);
+ roomsList->horizontalHeader()->setResizeMode(1, QHeaderView::ResizeToContents);
+ roomsList->horizontalHeader()->setResizeMode(2, QHeaderView::ResizeToContents);
+ roomsList->horizontalHeader()->setResizeMode(3, QHeaderView::ResizeToContents);
+ roomsList->horizontalHeader()->setResizeMode(4, QHeaderView::ResizeToContents);
+ roomsList->horizontalHeader()->setResizeMode(5, QHeaderView::ResizeToContents);
+ roomsList->horizontalHeader()->setResizeMode(6, QHeaderView::ResizeToContents);
// set resize modes
- roomsList->horizontalHeader()->setResizeMode(QHeaderView::Interactive);
+// roomsList->horizontalHeader()->setResizeMode(QHeaderView::Interactive);
if (list.size() % 8)
return;
@@ -907,7 +915,7 @@
roomsList->setItem(r, 6, item);
}
- //roomsList->resizeColumnsToContents();
+// roomsList->resizeColumnsToContents();
}
void PageRoomsList::onCreateClick()