Use use-preferred font in submit editor, not slightly smaller

Also enable/disable the column spinbox when checking/unchecking the wrap
submit message option, and force the wrapping to be word-based.
This commit is contained in:
Thorbjørn Lindeijer
2009-03-25 16:16:34 +01:00
parent 18b2693970
commit bd87ce9454
3 changed files with 28 additions and 7 deletions

View File

@@ -109,11 +109,11 @@ VCSBaseSubmitEditor::VCSBaseSubmitEditor(const VCSBaseSubmitEditorParameters *pa
Core::Utils::SubmitEditorWidget *editorWidget) :
m_d(new VCSBaseSubmitEditorPrivate(parameters, editorWidget, this))
{
// message font according to settings
// Message font according to settings
const TextEditor::FontSettings fs = TextEditor::TextEditorSettings::instance()->fontSettings();
QFont font = editorWidget->descriptionEdit()->font();
font.setFamily(fs.family());
font.setPointSize((fs.fontSize() * 4) / 5);
font.setPointSize(fs.fontSize());
editorWidget->descriptionEdit()->setFont(font);
m_d->m_file->setModified(false);