blob: bb21314f6d7a18892f0abf6775bdeb0550059136 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#include "contact.h"
Contact::Contact(const QString &own, const QString &other,
QListWidget *const list, QWidget *const parent) :
QListWidgetItem(list),
QWidget(parent),
own(own),
other(other)
{
ui.setupUi(this);
ui.own_jid->setText(own);
ui.contact_jid->setText(other);
QListWidgetItem::setSizeHint(QWidget::sizeHint());
list->addItem(this);
list->setItemWidget(this, this);
}
|