Commit b94e51bc authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Rename signal

parent e0b2756b
Pipeline #55547 passed with stage
in 41 minutes and 54 seconds
...@@ -26,7 +26,7 @@ bool BlockMailTrackingUrlInterceptor::interceptRequest(QWebEngineUrlRequestInfo ...@@ -26,7 +26,7 @@ bool BlockMailTrackingUrlInterceptor::interceptRequest(QWebEngineUrlRequestInfo
for (int i = 0, total = mBackList.size(); i < total; ++i) { for (int i = 0, total = mBackList.size(); i < total; ++i) {
const auto blackListinfo{mBackList.at(i)}; const auto blackListinfo{mBackList.at(i)};
if (urlRequestUrl.url().startsWith(blackListinfo.mCompanyUrl)) { if (urlRequestUrl.url().startsWith(blackListinfo.mCompanyUrl)) {
Q_EMIT mailTrackingFound(blackListinfo); Q_EMIT trackingFound(blackListinfo);
return true; return true;
} }
} }
......
...@@ -38,7 +38,7 @@ public: ...@@ -38,7 +38,7 @@ public:
Q_REQUIRED_RESULT bool interceptRequest(QWebEngineUrlRequestInfo &info) override; Q_REQUIRED_RESULT bool interceptRequest(QWebEngineUrlRequestInfo &info) override;
Q_SIGNALS: Q_SIGNALS:
void mailTrackingFound(const MessageViewer::BlockMailTrackingUrlInterceptor::MailTrackerBlackList &); void trackingFound(const MessageViewer::BlockMailTrackingUrlInterceptor::MailTrackerBlackList &);
private: private:
void initializeList(); void initializeList();
......
...@@ -91,7 +91,7 @@ MailWebEngineView::MailWebEngineView(KActionCollection *ac, QWidget *parent) ...@@ -91,7 +91,7 @@ MailWebEngineView::MailWebEngineView(KActionCollection *ac, QWidget *parent)
d->mNetworkAccessManager->addInterceptor(blockExternalUrl); d->mNetworkAccessManager->addInterceptor(blockExternalUrl);
d->mBlockMailTrackingUrl = new MessageViewer::BlockMailTrackingUrlInterceptor(this); d->mBlockMailTrackingUrl = new MessageViewer::BlockMailTrackingUrlInterceptor(this);
connect(d->mBlockMailTrackingUrl, &BlockMailTrackingUrlInterceptor::mailTrackingFound, this, &MailWebEngineView::mailTrackingFound); connect(d->mBlockMailTrackingUrl, &BlockMailTrackingUrlInterceptor::trackingFound, this, &MailWebEngineView::mailTrackingFound);
setFocusPolicy(Qt::WheelFocus); setFocusPolicy(Qt::WheelFocus);
connect(d->mPageEngine, &MailWebEnginePage::urlClicked, this, &MailWebEngineView::openUrl); connect(d->mPageEngine, &MailWebEnginePage::urlClicked, this, &MailWebEngineView::openUrl);
......
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