Mercurial > minori
comparison src/gui/widgets/text.cpp @ 51:75c804f713b2
window: add about window,
*: use tr() when applicable (useful for i18n)
| author | Paper <mrpapersonic@gmail.com> |
|---|---|
| date | Mon, 25 Sep 2023 20:29:26 -0400 |
| parents | 10868c3fb2be |
| children | 4c6dd5999b39 |
comparison
equal
deleted
inserted
replaced
| 50:10868c3fb2be | 51:75c804f713b2 |
|---|---|
| 144 return paragraph; | 144 return paragraph; |
| 145 } | 145 } |
| 146 | 146 |
| 147 /* inherits QPlainTextEdit and gives a much more reasonable minimum size */ | 147 /* inherits QPlainTextEdit and gives a much more reasonable minimum size */ |
| 148 Paragraph::Paragraph(QString text, QWidget* parent) : QPlainTextEdit(text, parent) { | 148 Paragraph::Paragraph(QString text, QWidget* parent) : QPlainTextEdit(text, parent) { |
| 149 setReadOnly(true); | |
| 150 setTextInteractionFlags(Qt::TextBrowserInteraction); | 149 setTextInteractionFlags(Qt::TextBrowserInteraction); |
| 151 setFrameShape(QFrame::NoFrame); | 150 setFrameShape(QFrame::NoFrame); |
| 152 setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff); | 151 setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff); |
| 153 setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff); | 152 setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff); |
| 154 | 153 |
