mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-30 06:38:49 +03:00
22 lines
353 B
C
22 lines
353 B
C
|
#pragma once
|
||
|
|
||
|
#include <QPaintEvent>
|
||
|
#include <QWidget>
|
||
|
|
||
|
class TypingDisplay : public QWidget
|
||
|
{
|
||
|
Q_OBJECT
|
||
|
|
||
|
public:
|
||
|
TypingDisplay(QWidget *parent = nullptr);
|
||
|
|
||
|
void setUsers(const QStringList &user_ids);
|
||
|
|
||
|
protected:
|
||
|
void paintEvent(QPaintEvent *event) override;
|
||
|
|
||
|
private:
|
||
|
QString text_;
|
||
|
int leftPadding_;
|
||
|
};
|