fixes last commit problems
authordisplacer
Tue, 20 Feb 2007 18:51:05 +0000
changeset 463 353c2f830888
parent 462 91baab07b79a
child 464 7f48321fc38a
fixes last commit problems
QTfrontend/chatwidget.cpp
QTfrontend/pages.cpp
--- a/QTfrontend/chatwidget.cpp	Tue Feb 20 18:40:45 2007 +0000
+++ b/QTfrontend/chatwidget.cpp	Tue Feb 20 18:51:05 2007 +0000
@@ -14,16 +14,18 @@
   chatEditLine = new QLineEdit(this);
   connect(chatEditLine, SIGNAL(returnPressed()), this, SLOT(returnPressed()));
 
-  mainLayout.addWidget(chatEditLine, 1, 0); //, 0, 1); //assertion failed!
+  mainLayout.addWidget(chatEditLine, 1, 0, 1, 2);
 
   chatText = new QListWidget(this);
   chatText->setMinimumHeight(10);
   chatText->setMinimumWidth(10);
+  chatText->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
   mainLayout.addWidget(chatText, 0, 0);
 
   chatNicks = new QListWidget(this);
   chatNicks->setMinimumHeight(10);
   chatNicks->setMinimumWidth(10);
+  chatNicks->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
   mainLayout.addWidget(chatNicks, 0, 1);
 }
 
--- a/QTfrontend/pages.cpp	Tue Feb 20 18:40:45 2007 +0000
+++ b/QTfrontend/pages.cpp	Tue Feb 20 18:51:05 2007 +0000
@@ -514,6 +514,8 @@
 	pageLayout->setSizeConstraint(QLayout::SetMinimumSize);
 	//pageLayout->setSpacing(1);
 	//pageLayout->setMargin(1);
+	pageLayout->setColumnStretch(0, 50);
+	pageLayout->setColumnStretch(1, 50);
 
 	// chatwidget
 	pChatWidget = new HWChatWidget(this);