[webview] Config header was still misplaced

- use #error to produce slightly more comprehensible build failers
This commit is contained in:
Adriaan de Groot 2020-08-26 14:48:23 +02:00
parent fd384f334d
commit ae14059e8b
2 changed files with 12 additions and 4 deletions

View File

@ -9,7 +9,6 @@
*/
#include "WebViewStep.h"
#include "WebViewConfig.h"
#include <QVariant>

View File

@ -12,6 +12,8 @@
#ifndef WEBVIEWPLUGIN_H
#define WEBVIEWPLUGIN_H
#include "WebViewConfig.h"
#include "DllMacro.h"
#include "utils/PluginFactory.h"
#include "viewpages/ViewStep.h"
@ -19,9 +21,16 @@
#include <QVariantMap>
#ifdef WEBVIEW_WITH_WEBKIT
#define C_QWEBVIEW QWebView
#else
#define C_QWEBVIEW QWebEngineView
# define C_QWEBVIEW QWebView
#endif
#ifdef WEBVIEW_WITH_WEBENGINE
# ifdef C_QWEBVIEW
# error Both WEBENGINE and WEBKIT enabled
# endif
# define C_QWEBVIEW QWebEngineView
#endif
#ifndef C_QWEBVIEW
# error Neither WEBENGINE nor WEBKIT enabled
#endif
class C_QWEBVIEW;