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 | |
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')
-rw-r--r-- | application/pages/LogPage.cpp | 12 | ||||
-rw-r--r-- | application/pages/LogPage.h | 1 | ||||
-rw-r--r-- | application/pages/LogPage.ui | 11 |
3 files changed, 24 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(); diff --git a/application/pages/LogPage.h b/application/pages/LogPage.h index ce89c3f2..9b694323 100644 --- a/application/pages/LogPage.h +++ b/application/pages/LogPage.h @@ -70,6 +70,7 @@ private slots: void on_btnBottom_clicked(); void on_trackLogCheckbox_clicked(bool checked); + void on_wrapCheckbox_clicked(bool checked); void on_findButton_clicked(); void findActivated(); diff --git a/application/pages/LogPage.ui b/application/pages/LogPage.ui index b558ba36..bf5ec004 100644 --- a/application/pages/LogPage.ui +++ b/application/pages/LogPage.ui @@ -65,6 +65,16 @@ </widget> </item> <item> + <widget class="QCheckBox" name="wrapCheckbox"> + <property name="text"> + <string>Wrap lines</string> + </property> + <property name="checked"> + <bool>true</bool> + </property> + </widget> + </item> + <item> <spacer name="horizontalSpacer"> <property name="orientation"> <enum>Qt::Horizontal</enum> @@ -152,6 +162,7 @@ <tabstops> <tabstop>tabWidget</tabstop> <tabstop>trackLogCheckbox</tabstop> + <tabstop>wrapCheckbox</tabstop> <tabstop>btnCopy</tabstop> <tabstop>btnPaste</tabstop> <tabstop>btnClear</tabstop> |