Commit 78508c34 authored by Laurent Montel's avatar Laurent Montel 😁

Improve

parent fee23ccf
......@@ -2061,6 +2061,7 @@ void ViewerPrivate::slotUrlPopup(const QUrl &aUrl, const QUrl &imageUrl, const Q
mClickedUrl = aUrl;
mImageUrl = imageUrl;
qDebug()<<" aUrl"<<aUrl;
if (URLHandlerManager::instance()->handleContextMenuRequest(aUrl, aPos, this)) {
return;
}
......
......@@ -29,6 +29,8 @@
#include <MessageViewer/WebHitTest>
#include <MessageViewer/WebHitTestResult>
#include <QWebEngineSettings>
using namespace MessageViewer;
template<typename Arg, typename R, typename C>
struct InvokeWrapper {
......@@ -70,6 +72,7 @@ MailWebEngineView::MailWebEngineView(KActionCollection *ac, QWidget *parent)
d(new MessageViewer::MailWebEngineViewPrivate)
{
settings()->setAttribute(QWebEngineSettings::JavascriptEnabled, true);
d->mWebViewAccessKey = new MailWebEngineAccessKey(this, this);
d->mWebViewAccessKey->setActionCollection(ac);
d->mScamDetection = new ScamDetectionWebEngine(this);
......@@ -101,7 +104,6 @@ void MailWebEngineView::contextMenuEvent(QContextMenuEvent *e)
void MailWebEngineView::slotWebHitFinished(const MessageViewer::WebHitTestResult &result)
{
Q_EMIT popupMenu(result.linkUrl(), result.imageUrl(), mapToGlobal(result.pos()));
// Q_EMIT popupMenu(const QUrl &url, const QUrl &imageUrl, const QPoint &point);
}
void MailWebEngineView::scrollUp(int pixels)
......
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