12 mainLayout.setSizeConstraint(QLayout::SetMinimumSize); |
12 mainLayout.setSizeConstraint(QLayout::SetMinimumSize); |
13 |
13 |
14 chatEditLine = new QLineEdit(this); |
14 chatEditLine = new QLineEdit(this); |
15 connect(chatEditLine, SIGNAL(returnPressed()), this, SLOT(returnPressed())); |
15 connect(chatEditLine, SIGNAL(returnPressed()), this, SLOT(returnPressed())); |
16 |
16 |
17 mainLayout.addWidget(chatEditLine, 1, 0); //, 0, 1); //assertion failed! |
17 mainLayout.addWidget(chatEditLine, 1, 0, 1, 2); |
18 |
18 |
19 chatText = new QListWidget(this); |
19 chatText = new QListWidget(this); |
20 chatText->setMinimumHeight(10); |
20 chatText->setMinimumHeight(10); |
21 chatText->setMinimumWidth(10); |
21 chatText->setMinimumWidth(10); |
|
22 chatText->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding); |
22 mainLayout.addWidget(chatText, 0, 0); |
23 mainLayout.addWidget(chatText, 0, 0); |
23 |
24 |
24 chatNicks = new QListWidget(this); |
25 chatNicks = new QListWidget(this); |
25 chatNicks->setMinimumHeight(10); |
26 chatNicks->setMinimumHeight(10); |
26 chatNicks->setMinimumWidth(10); |
27 chatNicks->setMinimumWidth(10); |
|
28 chatNicks->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding); |
27 mainLayout.addWidget(chatNicks, 0, 1); |
29 mainLayout.addWidget(chatNicks, 0, 1); |
28 } |
30 } |
29 |
31 |
30 void HWChatWidget::returnPressed() |
32 void HWChatWidget::returnPressed() |
31 { |
33 { |