diff --git a/src/widgets/resizingtextedit.cpp b/src/widgets/resizingtextedit.cpp index 779e9eca3..494201024 100644 --- a/src/widgets/resizingtextedit.cpp +++ b/src/widgets/resizingtextedit.cpp @@ -6,6 +6,7 @@ ResizingTextEdit::ResizingTextEdit() sizePolicy.setHeightForWidth(true); sizePolicy.setVerticalPolicy(QSizePolicy::Preferred); this->setSizePolicy(sizePolicy); + this->setAcceptRichText(false); QObject::connect(this, &QTextEdit::textChanged, this, &QWidget::updateGeometry); diff --git a/src/widgets/resizingtextedit.hpp b/src/widgets/resizingtextedit.hpp index ba76092d2..59098b4ca 100644 --- a/src/widgets/resizingtextedit.hpp +++ b/src/widgets/resizingtextedit.hpp @@ -20,8 +20,8 @@ public: QCompleter *getCompleter() const; protected: - int heightForWidth(int) const override; - void keyPressEvent(QKeyEvent *event) override; + virtual int heightForWidth(int) const override; + virtual void keyPressEvent(QKeyEvent *event) override; private: QCompleter *completer = nullptr;