From b70e09c7ec28b819701a12f07b6953eb66a12794 Mon Sep 17 00:00:00 2001 From: Konstantinos Sideris Date: Sun, 18 Mar 2018 17:08:13 +0200 Subject: Add border line above the text input --- include/TextInputWidget.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'include/TextInputWidget.h') diff --git a/include/TextInputWidget.h b/include/TextInputWidget.h index b89b7753..872773f1 100644 --- a/include/TextInputWidget.h +++ b/include/TextInputWidget.h @@ -83,11 +83,16 @@ class TextInputWidget : public QWidget { Q_OBJECT + Q_PROPERTY(QColor borderColor READ borderColor WRITE setBorderColor) + public: TextInputWidget(QWidget *parent = 0); void stopTyping(); + QColor borderColor() const { return borderColor_; } + void setBorderColor(QColor &color) { borderColor_ = color; } + public slots: void openFileSelection(); void hideUploadSpinner(); @@ -126,4 +131,6 @@ private: FlatButton *sendFileBtn_; FlatButton *sendMessageBtn_; emoji::PickButton *emojiBtn_; + + QColor borderColor_; }; -- cgit 1.5.1