diff options
| author | Salanto <62221668+Salanto@users.noreply.github.com> | 2022-06-11 16:09:53 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-06-11 18:09:53 -0500 |
| commit | ffcd783c10b6e3d37bacae3ac61f595938a50e27 (patch) | |
| tree | 47d5526584d13a1e1e920b622c2bee8ad23175d7 /src/aotextarea.cpp | |
| parent | b8a5deeaaeb17e639cb89a66fac1b5990b3480d3 (diff) | |
Add line limit to server chat and debug log panes (#784)
Set default maximum block size to 5,000 unless otherwise specified
Diffstat (limited to 'src/aotextarea.cpp')
| -rw-r--r-- | src/aotextarea.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/aotextarea.cpp b/src/aotextarea.cpp index 3513d221..a4259039 100644 --- a/src/aotextarea.cpp +++ b/src/aotextarea.cpp @@ -1,6 +1,9 @@ #include "aotextarea.h" -AOTextArea::AOTextArea(QWidget *p_parent) : QTextBrowser(p_parent) {} +AOTextArea::AOTextArea(QWidget *p_parent, int p_log_length) : QTextBrowser(p_parent) +{ + this->document()->setMaximumBlockCount(p_log_length); +} void AOTextArea::append_linked(QString p_message) { |
