Reorder
authornemo
Sun, 29 Nov 2009 21:47:47 +0000
changeset 2651 9977d8bd95a3
parent 2650 7bfc1edccb8b
child 2652 67d0344aea9f
Reorder
QTfrontend/pages.cpp
--- 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();
 }