diff options
author | Petr Mrázek <peterix@gmail.com> | 2016-04-10 21:52:01 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2016-04-10 21:52:01 +0200 |
commit | b795ad52099562a90b961e2e294daf6a3dc00883 (patch) | |
tree | ce2008a639f88e14dd4fcc46743939e41ae27fef /application/pages/LogPage.cpp | |
parent | c44e85c7650fdfed2832d849a3e84c04f1b5d08c (diff) | |
download | MultiMC-b795ad52099562a90b961e2e294daf6a3dc00883.tar MultiMC-b795ad52099562a90b961e2e294daf6a3dc00883.tar.gz MultiMC-b795ad52099562a90b961e2e294daf6a3dc00883.tar.lz MultiMC-b795ad52099562a90b961e2e294daf6a3dc00883.tar.xz MultiMC-b795ad52099562a90b961e2e294daf6a3dc00883.zip |
NOISSUE add line wrapping checkbox to log page
Diffstat (limited to 'application/pages/LogPage.cpp')
-rw-r--r-- | application/pages/LogPage.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/application/pages/LogPage.cpp b/application/pages/LogPage.cpp index 597554db..af96148b 100644 --- a/application/pages/LogPage.cpp +++ b/application/pages/LogPage.cpp @@ -108,6 +108,18 @@ void LogPage::on_trackLogCheckbox_clicked(bool checked) m_write_active = checked; } +void LogPage::on_wrapCheckbox_clicked(bool checked) +{ + if(checked) + { + ui->text->setWordWrapMode(QTextOption::WrapAtWordBoundaryOrAnywhere); + } + else + { + ui->text->setWordWrapMode(QTextOption::WrapMode::NoWrap); + } +} + void LogPage::on_findButton_clicked() { auto modifiers = QApplication::keyboardModifiers(); |