mirror of https://github.com/Nheko-Reborn/nheko
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
353 B
21 lines
353 B
#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_;
|
|
};
|
|
|