mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
parent
ac6db75dc6
commit
6baf045c4c
2 changed files with 3 additions and 2 deletions
|
@ -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);
|
||||||
|
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue