summaryrefslogtreecommitdiffstats
path: root/examples/qtmail/plugins/viewers/generic/browserwidget.cpp
diff options
context:
space:
mode:
authorPatrick Burke <patrick.burke@nokia.com>2011-01-07 13:48:22 +1000
committerPatrick Burke <patrick.burke@nokia.com>2011-01-07 13:48:22 +1000
commitd3d28260c9845606271a47e071d7476ff8aa34fa (patch)
tree42e81cf6ad43c1af02358cce44e84457219b14d4 /examples/qtmail/plugins/viewers/generic/browserwidget.cpp
parent0289c68cd338a7a83e98a415f323f7a9adba19ad (diff)
Cleanup message subject for display only; database unchanged.
Alters all message.subject() calls for display to be message.subject().simplified() to strip tabs, duplicate spaces, etc.
Diffstat (limited to 'examples/qtmail/plugins/viewers/generic/browserwidget.cpp')
-rw-r--r--examples/qtmail/plugins/viewers/generic/browserwidget.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/qtmail/plugins/viewers/generic/browserwidget.cpp b/examples/qtmail/plugins/viewers/generic/browserwidget.cpp
index a11c1d73..b0753af5 100644
--- a/examples/qtmail/plugins/viewers/generic/browserwidget.cpp
+++ b/examples/qtmail/plugins/viewers/generic/browserwidget.cpp
@@ -607,7 +607,7 @@ void BrowserWidget::displayPlainText(const QMailMessage* mail)
QString text;
if ((mail->messageType() != QMailMessage::Sms) && (mail->messageType() != QMailMessage::Instant))
- text += tr("Subject") + QLatin1String(": ") + mail->subject() + '\n';
+ text += tr("Subject") + QLatin1String(": ") + mail->subject().simplified() + '\n';
QMailAddress fromAddress(mail->from());
if (!fromAddress.isNull())