From cba7e0e47f8d7a89379e877af74c1b09cb09a425 Mon Sep 17 00:00:00 2001 From: Montel Laurent Date: Fri, 20 Jun 2014 08:31:45 +0200 Subject: [PATCH] Move code to cpp file --- editor/kmcomposewin.cpp | 15 +++++++++++++++ editor/kmcomposewin.h | 9 +++------ 2 files changed, 18 insertions(+), 6 deletions(-) diff --git a/editor/kmcomposewin.cpp b/editor/kmcomposewin.cpp index 5feb5f29f..2e1ce25c0 100644 --- a/editor/kmcomposewin.cpp +++ b/editor/kmcomposewin.cpp @@ -1786,6 +1786,16 @@ void KMComposeWin::setCustomTemplate( const QString& customTemplate ) mCustomTemplate = customTemplate; } +void KMComposeWin::setSigningAndEncryptionDisabled(bool v) +{ + mSigningAndEncryptionExplicitlyDisabled = v; +} + +void KMComposeWin::setFolder(const Akonadi::Collection &aFolder) +{ + mFolder = aFolder; +} + //----------------------------------------------------------------------------- void KMComposeWin::setFcc( const QString &idString ) { @@ -2567,6 +2577,11 @@ void KMComposeWin::forceDisableHtml() // FIXME: Remove the toggle toolbar action somehow } +bool KMComposeWin::isComposing() const +{ + return mComposerBase && mComposerBase->isComposing(); +} + void KMComposeWin::disableForgottenAttachmentsCheck() { mCheckForForgottenAttachments = false; diff --git a/editor/kmcomposewin.h b/editor/kmcomposewin.h index bb2ffdb11..4c6196eda 100644 --- a/editor/kmcomposewin.h +++ b/editor/kmcomposewin.h @@ -195,7 +195,7 @@ public: // kmkernel, kmcommands, callback /** * Returns @c true while the message composing is in progress. */ - bool isComposing() const { return mComposerBase && mComposerBase->isComposing(); } + bool isComposing() const; /** * Set the text selection the message is a response to. @@ -208,15 +208,12 @@ public: // kmkernel, kmcommands, callback void setCustomTemplate( const QString& customTemplate ); /** Disabled signing and encryption completely for this composer window. */ - void setSigningAndEncryptionDisabled( bool v ) - { - mSigningAndEncryptionExplicitlyDisabled = v; - } + void setSigningAndEncryptionDisabled( bool v ); /** * If this folder is set, the original message is inserted back after * canceling */ - void setFolder(const Akonadi::Collection &aFolder ) { mFolder = aFolder; } + void setFolder(const Akonadi::Collection &aFolder ); /** * Sets the focus to the edit-widget. */