--- a/QTfrontend/pages.cpp Sun Nov 29 19:01:01 2009 +0000
+++ b/QTfrontend/pages.cpp Sun Nov 29 21:47:47 2009 +0000
@@ -843,14 +843,6 @@
// 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);
@@ -915,6 +907,14 @@
roomsList->setItem(r, 6, item);
}
+ 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);
+
// roomsList->resizeColumnsToContents();
}