Fix wrapping of commit messages

Remove trimmedDescription(), always trim. Extract trimmed text using the
text cursor
Reviewed-by: Thorbjorn Lindeijer <thorbjorn.lindeijer@nokia.com>
This commit is contained in:
Friedemann Kleint
2009-03-20 16:02:14 +01:00
parent b789ffa91b
commit 2fc4e90015
4 changed files with 25 additions and 10 deletions

View File

@@ -152,7 +152,7 @@ void PerforceSubmitEditor::updateEntries()
const QString newLine = QString(QLatin1Char('\n'));
const QString tab = QString(QLatin1Char('\t'));
QStringList lines = submitEditorWidget()->trimmedDescriptionText().split(newLine);
QStringList lines = submitEditorWidget()->descriptionText().split(newLine);
while (lines.last().isEmpty())
lines.removeLast();
// Description