17 lines
423 B
C++
17 lines
423 B
C++
#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);
|
|
}
|