From 791679c0d6ced13398109291155db7a7433e43b1 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Sun, 21 Feb 2016 17:05:26 +0100 Subject: Fixed build --- framework/mail/objecttreesource.cpp | 22 +++++++++++----------- framework/mail/objecttreesource.h | 16 ++++++++-------- 2 files changed, 19 insertions(+), 19 deletions(-) (limited to 'framework') diff --git a/framework/mail/objecttreesource.cpp b/framework/mail/objecttreesource.cpp index 8c155837..d14b7b9b 100644 --- a/framework/mail/objecttreesource.cpp +++ b/framework/mail/objecttreesource.cpp @@ -68,7 +68,7 @@ MessageViewer::CSSHelperBase *ObjectTreeSource::cssHelper() return d->mCSSHelper; } -bool ObjectTreeSource::htmlLoadExternal() +bool ObjectTreeSource::htmlLoadExternal() const { return d->mHtmlLoadExternal; } @@ -78,7 +78,7 @@ void ObjectTreeSource::setHtmlLoadExternal(bool loadExternal) d->mHtmlLoadExternal = loadExternal; } -bool ObjectTreeSource::htmlMail() +bool ObjectTreeSource::htmlMail() const { return d->mHtmlMail; } @@ -88,17 +88,17 @@ void ObjectTreeSource::setHtmlMail(bool htmlMail) d->mHtmlMail = htmlMail; } -bool ObjectTreeSource::decryptMessage() +bool ObjectTreeSource::decryptMessage() const { return d->mAllowDecryption; } -bool ObjectTreeSource::showSignatureDetails() +bool ObjectTreeSource::showSignatureDetails() const { return true; } -int ObjectTreeSource::levelQuote() +int ObjectTreeSource::levelQuote() const { return 1; } @@ -108,7 +108,7 @@ const QTextCodec *ObjectTreeSource::overrideCodec() return Q_NULLPTR; } -QString ObjectTreeSource::createMessageHeader(KMime::Message *message) +QString ObjectTreeSource::createMessageHeader(KMime::Message *message) { return QString(); } @@ -118,7 +118,7 @@ const MessageViewer::AttachmentStrategy *ObjectTreeSource::attachmentStrategy() return MessageViewer::AttachmentStrategy::smart(); } -QObject *ObjectTreeSource::sourceObject() +QObject *ObjectTreeSource::sourceObject() { return Q_NULLPTR; } @@ -128,17 +128,17 @@ void ObjectTreeSource::setHtmlMode(MessageViewer::Util::HtmlMode mode) Q_UNUSED(mode); } -bool ObjectTreeSource::autoImportKeys() +bool ObjectTreeSource::autoImportKeys() const { return false; } -bool ObjectTreeSource::showEmoticons() +bool ObjectTreeSource::showEmoticons() const { return false; } -bool ObjectTreeSource::showExpandQuotesMark() +bool ObjectTreeSource::showExpandQuotesMark() const { return false; -} \ No newline at end of file +} diff --git a/framework/mail/objecttreesource.h b/framework/mail/objecttreesource.h index 4823999f..db14e3ff 100644 --- a/framework/mail/objecttreesource.h +++ b/framework/mail/objecttreesource.h @@ -33,22 +33,22 @@ public: virtual ~ObjectTreeSource(); void setHtmlLoadExternal(bool loadExternal); void setHtmlMail(bool htmlMail); - bool htmlMail() Q_DECL_OVERRIDE; - bool decryptMessage() Q_DECL_OVERRIDE; - bool htmlLoadExternal() Q_DECL_OVERRIDE; - bool showSignatureDetails() Q_DECL_OVERRIDE; + bool htmlMail() const Q_DECL_OVERRIDE; + bool decryptMessage() const Q_DECL_OVERRIDE; + bool htmlLoadExternal() const Q_DECL_OVERRIDE; + bool showSignatureDetails() const Q_DECL_OVERRIDE; void setHtmlMode(MessageViewer::Util::HtmlMode mode) Q_DECL_OVERRIDE; void setAllowDecryption(bool allowDecryption); - int levelQuote() Q_DECL_OVERRIDE; + int levelQuote() const Q_DECL_OVERRIDE; const QTextCodec *overrideCodec() Q_DECL_OVERRIDE; QString createMessageHeader(KMime::Message *message) Q_DECL_OVERRIDE; const MessageViewer::AttachmentStrategy *attachmentStrategy() Q_DECL_OVERRIDE; MessageViewer::HtmlWriter *htmlWriter() Q_DECL_OVERRIDE; MessageViewer::CSSHelperBase *cssHelper() Q_DECL_OVERRIDE; QObject *sourceObject() Q_DECL_OVERRIDE; - bool autoImportKeys() Q_DECL_OVERRIDE; - bool showEmoticons() Q_DECL_OVERRIDE; - bool showExpandQuotesMark() Q_DECL_OVERRIDE; + bool autoImportKeys() const Q_DECL_OVERRIDE; + bool showEmoticons() const Q_DECL_OVERRIDE; + bool showExpandQuotesMark() const Q_DECL_OVERRIDE; private: ObjectSourcePrivate *const d; }; -- cgit v1.2.3