diff options
Diffstat (limited to '')
-rw-r--r-- | src/TypingDisplay.h | 11 |
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_; }; |