summaryrefslogtreecommitdiffstats
path: root/examples/qtmail/emailcomposer.cpp
diff options
context:
space:
mode:
authorPekka Vuorela <pekka.vuorela@jolla.com>2025-05-09 10:27:28 +0300
committerPekka Vuorela <pekka.vuorela@jolla.com>2025-05-09 11:59:43 +0300
commit624337714112d2afb2c8553a4f3cccf088accfce (patch)
tree1d3f2e091829f363f696016df37e2e7169ba895c /examples/qtmail/emailcomposer.cpp
parent724da420f17b04921af19038297d021aa4e5b104 (diff)
Remove trailing whitespace with sed script
Change-Id: Iebfffe7a6d5b2db40f0508ecd7c8ccddfa6665a6 Reviewed-by: Damien Caliste <dcaliste@free.fr> Reviewed-by: <matti.viljanen@kapsi.fi> Reviewed-by: Pekka Vuorela <pvuorela@iki.fi>
Diffstat (limited to 'examples/qtmail/emailcomposer.cpp')
-rw-r--r--examples/qtmail/emailcomposer.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/examples/qtmail/emailcomposer.cpp b/examples/qtmail/emailcomposer.cpp
index 01ffe5a1..1ba559b6 100644
--- a/examples/qtmail/emailcomposer.cpp
+++ b/examples/qtmail/emailcomposer.cpp
@@ -156,7 +156,7 @@ m_removeButton(new QToolButton(this))
m_removeButton->setFocusPolicy(Qt::NoFocus);
setFocusPolicy(Qt::StrongFocus);
-
+
m_recipientEdit->setCompleter(sentFolderCompleter());
}
@@ -452,8 +452,8 @@ Dictionary::Dictionary()
class SpellingHighlighter : public QSyntaxHighlighter
{
Q_OBJECT
-
-public:
+
+public:
SpellingHighlighter(QTextEdit *parent) :QSyntaxHighlighter(parent) {};
protected:
@@ -791,7 +791,7 @@ QMailMessage EmailComposerInterface::message() const
const QMailMessagePart &existingPart(referencedMessage.partAt(partLocation));
QMailMessageContentDisposition existingDisposition(existingPart.contentDisposition());
-
+
QMailMessageContentDisposition disposition(QMailMessageContentDisposition::Inline);
disposition.setFilename(existingDisposition.filename());
disposition.setSize(existingDisposition.size());
@@ -1000,7 +1000,7 @@ void EmailComposerInterface::create(const QMailMessage& sourceMail)
//set the details
setDetails(sourceMail);
- m_sourceStatus = sourceMail.status();
+ m_sourceStatus = sourceMail.status();
if (!sourceMail.id().isValid()) {
// This is a new message
m_sourceStatus |= QMailMessage::LocalOnly;
@@ -1101,7 +1101,7 @@ void EmailComposerInterface::respond(QMailMessage::ResponseType type, const QMai
// Add only the single relevant part
QMailMessageContentDisposition disposition(QMailMessageContentDisposition::Attachment);
-
+
const QMailMessagePart &sourcePart(source.partAt(partLocation));
if (viaReference) {
mail.appendPart(QMailMessagePart::fromPartReference(partLocation, disposition, sourcePart.contentType(), sourcePart.transferEncoding()));
@@ -1110,7 +1110,7 @@ void EmailComposerInterface::respond(QMailMessage::ResponseType type, const QMai
QByteArray partData(sourcePart.body().data(QMailMessageBody::Decoded));
mail.appendPart(QMailMessagePart::fromData(partData, disposition, sourcePart.contentType(), sourcePart.transferEncoding()));
}
-
+
bodyText = forwardBlock + '\n' + originalText;
textPart = -1;
} else {