Mercurial > minori
comparison include/gui/widgets/text.h @ 295:b82841e76e79
*: better support on Windows
things now look much better in dark mode
author | Paper <paper@paper.us.eu.org> |
---|---|
date | Sun, 12 May 2024 20:24:09 -0400 |
parents | 9a88e1725fd2 |
children | 6b0768158dcd |
comparison
equal
deleted
inserted
replaced
294:99cbc51433e4 | 295:b82841e76e79 |
---|---|
32 Paragraph(const QString& text, QWidget* parent = nullptr); | 32 Paragraph(const QString& text, QWidget* parent = nullptr); |
33 void SetText(const QString& text); | 33 void SetText(const QString& text); |
34 QPlainTextEdit* GetLabel(); | 34 QPlainTextEdit* GetLabel(); |
35 | 35 |
36 protected: | 36 protected: |
37 QSize minimumSizeHint() const; | 37 bool hasHeightForWidth() const override; |
38 QSize sizeHint() const; | 38 int heightForWidth(int w) const override; |
39 | 39 |
40 private: | 40 private: |
41 QPlainTextEdit text_edit; | 41 QPlainTextEdit text_edit; |
42 }; | 42 }; |
43 | 43 |