summaryrefslogtreecommitdiffstats
path: root/application/pages/LogPage.cpp
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2016-04-10 21:52:01 +0200
committerPetr Mrázek <peterix@gmail.com>2016-04-10 21:52:01 +0200
commitb795ad52099562a90b961e2e294daf6a3dc00883 (patch)
treece2008a639f88e14dd4fcc46743939e41ae27fef /application/pages/LogPage.cpp
parentc44e85c7650fdfed2832d849a3e84c04f1b5d08c (diff)
downloadMultiMC-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.cpp12
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();