Chat input no longer accepts rich text

Fix #96
This commit is contained in:
Rasmus Karlsson 2017-08-12 12:20:51 +02:00
parent ac6db75dc6
commit 6baf045c4c
2 changed files with 3 additions and 2 deletions

View file

@ -6,6 +6,7 @@ ResizingTextEdit::ResizingTextEdit()
sizePolicy.setHeightForWidth(true); sizePolicy.setHeightForWidth(true);
sizePolicy.setVerticalPolicy(QSizePolicy::Preferred); sizePolicy.setVerticalPolicy(QSizePolicy::Preferred);
this->setSizePolicy(sizePolicy); this->setSizePolicy(sizePolicy);
this->setAcceptRichText(false);
QObject::connect(this, &QTextEdit::textChanged, this, &QWidget::updateGeometry); QObject::connect(this, &QTextEdit::textChanged, this, &QWidget::updateGeometry);

View file

@ -20,8 +20,8 @@ public:
QCompleter *getCompleter() const; QCompleter *getCompleter() const;
protected: protected:
int heightForWidth(int) const override; virtual int heightForWidth(int) const override;
void keyPressEvent(QKeyEvent *event) override; virtual void keyPressEvent(QKeyEvent *event) override;
private: private:
QCompleter *completer = nullptr; QCompleter *completer = nullptr;