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

Fix error found by "QT_NO_NARROWING_CONVERSIONS_IN_CONNECT"

parent 5af8e5f5
...@@ -131,7 +131,7 @@ if(BUILD_TESTING) ...@@ -131,7 +131,7 @@ if(BUILD_TESTING)
add_definitions(-DBUILD_TESTING) add_definitions(-DBUILD_TESTING)
endif(BUILD_TESTING) endif(BUILD_TESTING)
add_definitions( -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT )
add_subdirectory(mimetreeparser) add_subdirectory(mimetreeparser)
if (NOT ${MIMETREEPARSER_ONLY_BUILD}) if (NOT ${MIMETREEPARSER_ONLY_BUILD})
add_subdirectory(messageviewer) add_subdirectory(messageviewer)
......
...@@ -81,7 +81,7 @@ void CheckPhishingUrlGui::slotJSonDebug(const QByteArray &debug) ...@@ -81,7 +81,7 @@ void CheckPhishingUrlGui::slotJSonDebug(const QByteArray &debug)
mJson->setPlainText(QString::fromLatin1(debug)); mJson->setPlainText(QString::fromLatin1(debug));
} }
void CheckPhishingUrlGui::slotGetResult(WebEngineViewer::CheckPhishingUrlUtil::UrlStatus result, const QUrl &url, double cacheDuration) void CheckPhishingUrlGui::slotGetResult(WebEngineViewer::CheckPhishingUrlUtil::UrlStatus result, const QUrl &url, uint verifyCacheAfterThisTime)
{ {
QString resultStr; QString resultStr;
switch (result) { switch (result) {
...@@ -101,7 +101,7 @@ void CheckPhishingUrlGui::slotGetResult(WebEngineViewer::CheckPhishingUrlUtil::U ...@@ -101,7 +101,7 @@ void CheckPhishingUrlGui::slotGetResult(WebEngineViewer::CheckPhishingUrlUtil::U
resultStr = QStringLiteral("Invalid Url"); resultStr = QStringLiteral("Invalid Url");
break; break;
} }
const QString str = QStringLiteral("\nurl: %1, duration: %2").arg(url.toDisplayString()).arg(cacheDuration); const QString str = QStringLiteral("\nurl: %1, verifyCacheAfterThisTime: %2").arg(url.toDisplayString()).arg(verifyCacheAfterThisTime);
mResult->setPlainText(resultStr + str); mResult->setPlainText(resultStr + str);
} }
......
...@@ -32,7 +32,7 @@ public: ...@@ -32,7 +32,7 @@ public:
~CheckPhishingUrlGui(); ~CheckPhishingUrlGui();
private Q_SLOTS: private Q_SLOTS:
void slotCheckUrl(); void slotCheckUrl();
void slotGetResult(WebEngineViewer::CheckPhishingUrlUtil::UrlStatus result, const QUrl &url, double cacheDuration); void slotGetResult(WebEngineViewer::CheckPhishingUrlUtil::UrlStatus result, const QUrl &url, uint verifyCacheAfterThisTime);
void slotJSonDebug(const QByteArray &debug); void slotJSonDebug(const QByteArray &debug);
private: private:
QLineEdit *mCheckUrlLineEdit; QLineEdit *mCheckUrlLineEdit;
......
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