summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <[email protected]>2017-08-11 14:12:04 +0200
committerMontel Laurent <[email protected]>2017-08-11 14:12:04 +0200
commit0c8aae2a66f4339e7a330fe91eea624116446463 (patch)
treed7f9fe77fe392e4b9038eb61be943c8af4df9b4c
parent1bc86552ec6d9527786209d52b19eb64f6d764fb (diff)
Fix logic + add missing include
-rw-r--r--webengineviewer/src/webenginepage.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/webengineviewer/src/webenginepage.cpp b/webengineviewer/src/webenginepage.cpp
index ca993a5..b7398b6 100644
--- a/webengineviewer/src/webenginepage.cpp
+++ b/webengineviewer/src/webenginepage.cpp
@@ -20,6 +20,7 @@
#include "webenginepage.h"
#include "webhittest.h"
#include "webhittestresult.h"
+#include "config-webengineviewer.h"
#include <KLocalizedString>
@@ -99,7 +100,7 @@ void WebEnginePage::javaScriptConsoleMessage(QWebEnginePage::JavaScriptConsoleMe
bool WebEnginePage::execPrintPreviewPage(QPrinter *printer, int timeout)
{
-#ifndef WEBENGINEVIEWER_PRINT_SUPPORT
+#ifdef WEBENGINEVIEWER_PRINT_SUPPORT
QPointer<QEventLoop> loop = new QEventLoop;
bool result = false;
QTimer::singleShot(timeout, loop.data(), &QEventLoop::quit);
@@ -116,6 +117,8 @@ bool WebEnginePage::execPrintPreviewPage(QPrinter *printer, int timeout)
return result;
#else
+ Q_UNUSED(printer);
+ Q_UNUSED(timeout);
return false;
#endif
}