Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit a2b9a676 authored by Laurent Montel's avatar Laurent Montel 😁

Add warning in composer

parent 9c121db7
......@@ -139,6 +139,9 @@ if (KDEPIM_BUILD_DESKTOP)
warningwidgets/externaleditorwarning.cpp
warningwidgets/attachmentmissingwarning.cpp
)
set(kmailprivate_editor_potentialphishingemail_SRCS
editor/potentialphishingemail/potentialphisingemailwarning.cpp
)
set(kmailprivate_dialogs_LIB_SRCS
dialog/archivefolderdialog.cpp
dialog/addemailtoexistingcontactdialog.cpp
......@@ -208,6 +211,7 @@ if (KDEPIM_BUILD_DESKTOP)
${kmailprivate_identity_LIB_SRCS}
${kmailprivate_editor_LIB_SRCS}
${kmailprivate_followupreminder_LIB_SRCS}
${kmailprivate_editor_potentialphishingemail_SRCS}
)
# TODO PORT
......@@ -360,6 +364,7 @@ if (KDEPIM_BUILD_DESKTOP)
add_subdirectory(mailmerge/tests/)
add_subdirectory(folderarchive/autotests/)
add_subdirectory(editor/potentialphishingemail/autotests)
########### install files ###############
install(TARGETS kmailprivate ${INSTALL_TARGETS_DEFAULT_ARGS} LIBRARY NAMELINK_SKIP)
......
......@@ -63,6 +63,7 @@
#include "followupreminder/followupremindercreatejob.h"
#include "agents/followupreminderagent/followupreminderutil.h"
#include "pimcommon/util/vcardutil.h"
#include "editor/potentialphishingemail/potentialphisingemailwarning.h"
#include "libkdepim/progresswidget/statusbarprogresswidget.h"
#include "libkdepim/progresswidget/progressstatusbarwidget.h"
......@@ -431,6 +432,9 @@ KMComposeWin::KMComposeWin( const KMime::Message::Ptr &aMsg, bool lastSignState,
connect(mAttachmentMissing, SIGNAL(explicitClosedMissingAttachment()), this, SLOT(slotExplicitClosedMissingAttachment()));
v->addWidget(mAttachmentMissing);
mPotentialPhishingEmailWarning = new PotentialPhisingEmailWarning(this);
v->addWidget(mPotentialPhishingEmailWarning);
if (GlobalSettings::self()->showForgottenAttachmentWarning()) {
m_verifyMissingAttachment = new QTimer(this);
m_verifyMissingAttachment->setSingleShot(true);
......
......@@ -70,6 +70,7 @@ class ExternalEditorWarning;
class KActionMenu;
class CryptoStateIndicatorWidget;
class StatusBarLabelToggledState;
class PotentialPhisingEmailWarning;
namespace boost {
template <typename T> class shared_ptr;
......@@ -695,6 +696,7 @@ private:
KToggleAction *mFollowUpToggleAction;
StatusBarLabelToggledState *mStatusBarLabelToggledOverrideMode;
StatusBarLabelToggledState *mStatusBarLabelSpellCheckingChangeMode;
PotentialPhisingEmailWarning *mPotentialPhishingEmailWarning;
};
#endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment