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

We need interceptorUrlActions for the future

parent 1ffb0ec1
......@@ -2828,6 +2828,12 @@ void KMMainWidget::showMessagePopup(const Akonadi::Item &msg, const QUrl &url, c
menu->addAction(mMsgActions->debugBalooAction());
}
}
#ifdef MESSAGEVIEWER_USE_QTWEBENGINE
//TODO use interceptorUrlActions
//QList<QAction *> mMsgActions->interceptorUrlActions(const MessageViewer::WebHitTestResult &result) const;
#endif
KAcceleratorManager::manage(menu);
menu->exec(aPoint, Q_NULLPTR);
delete menu;
......
......@@ -901,3 +901,10 @@ void KMReaderWin::slotShareImage()
KMCommand *command = new KMShareImageCommand(imageUrlClicked(), this);
command->start();
}
#ifdef MESSAGEVIEWER_USE_QTWEBENGINE
QList<QAction *> KMReaderWin::interceptorUrlActions(const MessageViewer::WebHitTestResult &result) const
{
return mViewer->interceptorUrlActions(result);
}
#endif
......@@ -177,6 +177,10 @@ public:
QList<QAction *> viewerPluginActionList(MessageViewer::ViewerPluginInterface::SpecificFeatureTypes features);
#ifdef MESSAGEVIEWER_USE_QTWEBENGINE
QList<QAction *> interceptorUrlActions(const MessageViewer::WebHitTestResult &result) const;
#endif
Q_SIGNALS:
/** Emitted after parsing of a message to have it stored
in unencrypted state in it's folder. */
......
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