forked from qt-creator/qt-creator
VCS: Fix wrapping when settings are changed while the editor is open
Change-Id: I41a138f1e0838be833edac1b63e64a1d86575db4 Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
committed by
Orgad Shaneh
parent
2584c4e180
commit
b8d9a6d127
@@ -369,6 +369,7 @@ void SubmitEditorWidget::setLineWrap(bool v)
|
||||
} else {
|
||||
d->m_ui.description->setLineWrapMode(QTextEdit::NoWrap);
|
||||
}
|
||||
descriptionTextChanged();
|
||||
}
|
||||
|
||||
int SubmitEditorWidget::lineWrapWidth() const
|
||||
@@ -385,6 +386,7 @@ void SubmitEditorWidget::setLineWrapWidth(int v)
|
||||
d->m_lineWidth = v;
|
||||
if (lineWrap())
|
||||
d->m_ui.description->setLineWrapColumnOrWidth(v);
|
||||
descriptionTextChanged();
|
||||
}
|
||||
|
||||
bool SubmitEditorWidget::isDescriptionMandatory() const
|
||||
|
||||
Reference in New Issue
Block a user