summary refs log tree commit diff
path: root/src/TypingDisplay.h
blob: db8a9519d377043cf410263f09c45e322fef24da (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#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_;
};