[webview] Config header was still misplaced
- use #error to produce slightly more comprehensible build failers
This commit is contained in:
parent
fd384f334d
commit
ae14059e8b
@ -9,7 +9,6 @@
|
||||
*/
|
||||
|
||||
#include "WebViewStep.h"
|
||||
#include "WebViewConfig.h"
|
||||
|
||||
#include <QVariant>
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user