diff options
Diffstat (limited to 'contact.cpp')
| -rw-r--r-- | contact.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/contact.cpp b/contact.cpp new file mode 100644 index 0000000..bb21314 --- /dev/null +++ b/contact.cpp @@ -0,0 +1,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); +} |
