summary refs log tree commit diff
path: root/src/InviteeItem.h
blob: 85ff7a63563567eac7b9ac414e200e9a22e5225c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#pragma once

#include <QLabel>
#include <QWidget>

#include "mtx.hpp"

class QPushButton;

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_;
        QPushButton *removeUserBtn_;
};