--- a/QTfrontend/chatwidget.cpp Tue Feb 20 17:50:59 2007 +0000
+++ b/QTfrontend/chatwidget.cpp Tue Feb 20 18:40:45 2007 +0000
@@ -9,15 +9,22 @@
{
mainLayout.setSpacing(1);
mainLayout.setMargin(1);
+ mainLayout.setSizeConstraint(QLayout::SetMinimumSize);
chatEditLine = new QLineEdit(this);
connect(chatEditLine, SIGNAL(returnPressed()), this, SLOT(returnPressed()));
- mainLayout.addWidget(chatEditLine, 1, 0);
-
+ mainLayout.addWidget(chatEditLine, 1, 0); //, 0, 1); //assertion failed!
+
chatText = new QListWidget(this);
chatText->setMinimumHeight(10);
+ chatText->setMinimumWidth(10);
mainLayout.addWidget(chatText, 0, 0);
+
+ chatNicks = new QListWidget(this);
+ chatNicks->setMinimumHeight(10);
+ chatNicks->setMinimumWidth(10);
+ mainLayout.addWidget(chatNicks, 0, 1);
}
void HWChatWidget::returnPressed()
--- a/QTfrontend/chatwidget.h Tue Feb 20 17:50:59 2007 +0000
+++ b/QTfrontend/chatwidget.h Tue Feb 20 18:40:45 2007 +0000
@@ -24,6 +24,7 @@
private:
QGridLayout mainLayout;
QListWidget* chatText;
+ QListWidget* chatNicks;
QLineEdit* chatEditLine;
private slots: