Commit 22d28ad8 authored by Laurent Montel's avatar Laurent Montel 😁

Add widget in viewer

parent 2840f885
......@@ -145,6 +145,7 @@
#include <viewerplugins/viewerplugininterface.h>
#include <WebEngineViewer/ZoomActionMenu>
#include <kpimtextedit/texttospeechwidget.h>
#include <widgets/mailtrackingwarningwidget.h>
#include <grantleetheme/grantleethememanager.h>
#include <grantleetheme/grantleetheme.h>
......@@ -1264,6 +1265,7 @@ void ViewerPrivate::resetStateForNewMessage()
mScamDetectionWarning->setVisible(false);
mOpenAttachmentFolderWidget->setVisible(false);
mSubmittedFormWarning->setVisible(false);
mMailTrackingWarning->setVisible(false);
if (mPrinting) {
if (MessageViewer::MessageViewerSettings::self()->respectExpandCollapseSettings()) {
......@@ -1474,6 +1476,10 @@ void ViewerPrivate::createWidgets()
mSubmittedFormWarning->setObjectName(QStringLiteral("submittedformwarning"));
readerBoxVBoxLayout->addWidget(mSubmittedFormWarning);
mMailTrackingWarning = new MailTrackingWarningWidget(readerBox);
mMailTrackingWarning->setObjectName(QStringLiteral("mailtrackingwarning"));
readerBoxVBoxLayout->addWidget(mMailTrackingWarning);
mScamDetectionWarning = new ScamDetectionWarningWidget(readerBox);
mScamDetectionWarning->setObjectName(QStringLiteral("scandetectionwarning"));
readerBoxVBoxLayout->addWidget(mScamDetectionWarning);
......@@ -3193,7 +3199,7 @@ void ViewerPrivate::slotAddToWhiteList()
void ViewerPrivate::slotMailTrackingFound()
{
//TODO
mMailTrackingWarning->animatedShow();
}
void ViewerPrivate::slotFormSubmittedForbidden()
......
......@@ -93,6 +93,7 @@ class ViewerPluginToolManager;
class ViewerPluginInterface;
class SubmittedFormWarningWidget;
class MailSourceWebEngineViewer;
class MailTrackingWarningWidget;
/**
\brief Private class for the Viewer, the main widget in the messageviewer library.
......@@ -679,6 +680,7 @@ public:
MessageViewer::ScamDetectionWarningWidget *mScamDetectionWarning = nullptr;
MessageViewer::OpenAttachmentFolderWidget *mOpenAttachmentFolderWidget = nullptr;
MessageViewer::SubmittedFormWarningWidget *mSubmittedFormWarning = nullptr;
MessageViewer::MailTrackingWarningWidget *mMailTrackingWarning = nullptr;
KPIMTextEdit::TextToSpeechWidget *mTextToSpeechWidget = nullptr;
Viewer::DisplayFormatMessage mDisplayFormatMessageOverwrite;
KPIMTextEdit::SlideContainer *mSliderContainer = nullptr;
......@@ -691,6 +693,7 @@ public:
QPrinter *mCurrentPrinter = nullptr;
QList<QPointer<MessageViewer::MailSourceWebEngineViewer> > mListMailSourceViewer;
WebEngineViewer::LocalDataBaseManager *mPhishingDatabase = nullptr;
};
}
......
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