Commit 0c8aae2a authored by Laurent Montel's avatar Laurent Montel 😁

Fix logic + add missing include

parent 1bc86552
...@@ -20,6 +20,7 @@ ...@@ -20,6 +20,7 @@
#include "webenginepage.h" #include "webenginepage.h"
#include "webhittest.h" #include "webhittest.h"
#include "webhittestresult.h" #include "webhittestresult.h"
#include "config-webengineviewer.h"
#include <KLocalizedString> #include <KLocalizedString>
...@@ -99,7 +100,7 @@ void WebEnginePage::javaScriptConsoleMessage(QWebEnginePage::JavaScriptConsoleMe ...@@ -99,7 +100,7 @@ void WebEnginePage::javaScriptConsoleMessage(QWebEnginePage::JavaScriptConsoleMe
bool WebEnginePage::execPrintPreviewPage(QPrinter *printer, int timeout) bool WebEnginePage::execPrintPreviewPage(QPrinter *printer, int timeout)
{ {
#ifndef WEBENGINEVIEWER_PRINT_SUPPORT #ifdef WEBENGINEVIEWER_PRINT_SUPPORT
QPointer<QEventLoop> loop = new QEventLoop; QPointer<QEventLoop> loop = new QEventLoop;
bool result = false; bool result = false;
QTimer::singleShot(timeout, loop.data(), &QEventLoop::quit); QTimer::singleShot(timeout, loop.data(), &QEventLoop::quit);
...@@ -116,6 +117,8 @@ bool WebEnginePage::execPrintPreviewPage(QPrinter *printer, int timeout) ...@@ -116,6 +117,8 @@ bool WebEnginePage::execPrintPreviewPage(QPrinter *printer, int timeout)
return result; return result;
#else #else
Q_UNUSED(printer);
Q_UNUSED(timeout);
return false; return false;
#endif #endif
} }
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