NOISSUE add line wrapping checkbox to log page
This commit is contained in:
parent
c44e85c765
commit
b795ad5209
@ -108,6 +108,18 @@ void LogPage::on_trackLogCheckbox_clicked(bool checked)
|
|||||||
m_write_active = 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()
|
void LogPage::on_findButton_clicked()
|
||||||
{
|
{
|
||||||
auto modifiers = QApplication::keyboardModifiers();
|
auto modifiers = QApplication::keyboardModifiers();
|
||||||
|
@ -70,6 +70,7 @@ private slots:
|
|||||||
void on_btnBottom_clicked();
|
void on_btnBottom_clicked();
|
||||||
|
|
||||||
void on_trackLogCheckbox_clicked(bool checked);
|
void on_trackLogCheckbox_clicked(bool checked);
|
||||||
|
void on_wrapCheckbox_clicked(bool checked);
|
||||||
|
|
||||||
void on_findButton_clicked();
|
void on_findButton_clicked();
|
||||||
void findActivated();
|
void findActivated();
|
||||||
|
@ -64,6 +64,16 @@
|
|||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</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>
|
<item>
|
||||||
<spacer name="horizontalSpacer">
|
<spacer name="horizontalSpacer">
|
||||||
<property name="orientation">
|
<property name="orientation">
|
||||||
@ -152,6 +162,7 @@
|
|||||||
<tabstops>
|
<tabstops>
|
||||||
<tabstop>tabWidget</tabstop>
|
<tabstop>tabWidget</tabstop>
|
||||||
<tabstop>trackLogCheckbox</tabstop>
|
<tabstop>trackLogCheckbox</tabstop>
|
||||||
|
<tabstop>wrapCheckbox</tabstop>
|
||||||
<tabstop>btnCopy</tabstop>
|
<tabstop>btnCopy</tabstop>
|
||||||
<tabstop>btnPaste</tabstop>
|
<tabstop>btnPaste</tabstop>
|
||||||
<tabstop>btnClear</tabstop>
|
<tabstop>btnClear</tabstop>
|
||||||
|
Loading…
Reference in New Issue
Block a user