summary refs log tree commit diff
path: root/src/popups/ReplyPopup.h
blob: 57c2bc8a0b4f9896b8e0bb71c8be3d76c36b9ef7 (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
28
29
30
31
#pragma once

#include <QHBoxLayout>
#include <QLabel>
#include <QPoint>
#include <QWidget>

#include "../AvatarProvider.h"
#include "../Cache.h"
#include "../ChatPage.h"
#include "PopupItem.h"

class ReplyPopup : public QWidget
{
        Q_OBJECT

public:
        explicit ReplyPopup(QWidget *parent = nullptr);

public slots:
        void setReplyContent(const QString &user, const QString &msg, const QString &srcEvent);

protected:
        void paintEvent(QPaintEvent *event) override;

signals:
        void userSelected(const QString &user);

private:
        QVBoxLayout *layout_;
};