Commit 9fbcc30a authored by Laurent Montel's avatar Laurent Montel 😁

Store mCurrentWebHitTest

parent 5add362f
......@@ -74,7 +74,7 @@ set(KDEPIMLIBS_LIB_VERSION "5.2.40")
set(GRAVATAR_LIB_VERSION "5.2.40")
set(INCIDENCEEDITOR_LIB_VERSION "5.2.40")
set(KTNEF_LIB_VERSION "5.2.40")
set(MESSAGELIB_LIB_VERSION "5.2.53")
set(MESSAGELIB_LIB_VERSION "5.2.55")
find_package(KF5MailCommon ${MAILCOMMN_LIB_VERSION} CONFIG REQUIRED)
find_package(KF5KaddressbookGrantlee ${KDEPIM_APPS_LIB_VERSION} CONFIG REQUIRED)
find_package(KF5MessageViewer ${KDEPIM_APPS_LIB_VERSION} CONFIG REQUIRED)
......
......@@ -58,6 +58,7 @@ QList<QAction *> AdblockInterceptorInterface::interceptorUrlActions(const Messag
if (!result.imageUrl().isEmpty()) {
lstAction.append(mBlockImage);
}
mCurrentWebHitTest = result;
}
return lstAction;
}
......@@ -100,8 +101,3 @@ void AdblockInterceptorInterface::slotShowBlockableElement()
delete dlg;
}
}
void AdblockInterceptorInterface::setCurrentWebHitTest(const MessageViewer::WebHitTestResult &currentWebHitTest)
{
//mCurrentWebHitTest = currentWebHitTest;
}
......@@ -39,15 +39,12 @@ public:
void setWebEngineView(QWebEngineView *webEngineView);
//TODO make it virtual
void setCurrentWebHitTest(const MessageViewer::WebHitTestResult &currentWebHitTest);
private Q_SLOTS:
void slotBlockImage();
void slotShowBlockableElement();
private:
MessageViewer::WebHitTestResult mCurrentWebHitTest;
mutable MessageViewer::WebHitTestResult mCurrentWebHitTest;
QAction *mShowBlockableItems;
QAction *mBlockImage;
AdBlock::AdblockManager *mAdblockManager;
......
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