2017-12-11 00:59:50 +03:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <QWidget>
|
|
|
|
|
2020-01-31 19:00:13 +03:00
|
|
|
#include <mtx/identifiers.hpp>
|
2017-12-11 00:59:50 +03:00
|
|
|
|
2018-09-21 10:55:24 +03:00
|
|
|
class QPushButton;
|
2020-05-25 14:03:49 +03:00
|
|
|
class QLabel;
|
2017-12-11 00:59:50 +03:00
|
|
|
|
|
|
|
class InviteeItem : public QWidget
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
InviteeItem(mtx::identifiers::User user, QWidget *parent = nullptr);
|
|
|
|
|
|
|
|
QString userID() { return user_; }
|
|
|
|
|
|
|
|
signals:
|
|
|
|
void removeItem();
|
|
|
|
|
|
|
|
private:
|
|
|
|
QString user_;
|
|
|
|
|
|
|
|
QLabel *name_;
|
2018-09-21 10:55:24 +03:00
|
|
|
QPushButton *removeUserBtn_;
|
2017-12-11 00:59:50 +03:00
|
|
|
};
|