summary refs log tree commit diff
path: root/src/TypingDisplay.h
diff options
context:
space:
mode:
authorKonstantinos Sideris <sideris.konstantin@gmail.com>2018-08-09 18:20:17 +0300
committerKonstantinos Sideris <sideris.konstantin@gmail.com>2018-08-09 18:20:17 +0300
commitd4c3dac28f2afb7c8f675729ed91c56494928c43 (patch)
tree234fa17a819dfcc11b1e3bb9e61e603879f71d63 /src/TypingDisplay.h
parentAllow user to configure join rules for a room (diff)
downloadnheko-d4c3dac28f2afb7c8f675729ed91c56494928c43.tar.xz
Remove the reserved space gap for the typing notifications
Diffstat (limited to 'src/TypingDisplay.h')
-rw-r--r--src/TypingDisplay.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/TypingDisplay.h b/src/TypingDisplay.h

index d5e2f29c..c4e6c357 100644 --- a/src/TypingDisplay.h +++ b/src/TypingDisplay.h
@@ -1,9 +1,10 @@ #pragma once -#include <QPaintEvent> -#include <QWidget> +#include "ui/OverlayWidget.h" -class TypingDisplay : public QWidget +class QPaintEvent; + +class TypingDisplay : public OverlayWidget { Q_OBJECT @@ -17,10 +18,14 @@ public: void setTextColor(const QColor &color) { textColor_ = color; }; QColor textColor() const { return textColor_; }; +public slots: + void setOffset(int margin); + protected: void paintEvent(QPaintEvent *event) override; private: + int offset_; QColor textColor_; QString text_; };