CCIMXDesktop
 
Loading...
Searching...
No Matches
ChatBubble.h
1#ifndef CHATBUBBLE_H
2#define CHATBUBBLE_H
3
4#include <QWidget>
5
6class ChatBubble : public QWidget {
7 Q_OBJECT
8public:
9 ChatBubble(const QString& text, bool me, QPixmap& avatar, QWidget* parent = nullptr);
10 QSize sizeHint() const override;
11
12protected:
13 void paintEvent(QPaintEvent*) override;
14
15signals:
16
17private:
18 QPixmap avatar;
19 QString text;
20 bool me;
21};
22
23#endif // CHATBUBBLE_H
Definition ChatBubble.h:6