So far the backend libraries' include paths were relative within this repository. This means the header files could not be used at their installed location. This change replaces them with "<>" includes to fix that problem and adds a new include directory so building everything at once still works. With this change it should be easier to actually split some parts into another repository if this one would become too big.
19 lines
436 B
C++
19 lines
436 B
C++
#ifdef SYNCTHINGWIDGETS_USE_WEBENGINE
|
|
#include "./webviewinterceptor.h"
|
|
|
|
#include <syncthingconnector/syncthingconnectionsettings.h>
|
|
|
|
#include <QWebEngineProfile>
|
|
#include <QWebEngineUrlRequestInterceptor>
|
|
|
|
namespace QtGui {
|
|
|
|
void WebViewInterceptor::interceptRequest(QWebEngineUrlRequestInfo &info)
|
|
{
|
|
info.setHttpHeader(QByteArray("X-API-Key"), m_settings.apiKey);
|
|
}
|
|
|
|
} // namespace QtGui
|
|
|
|
#endif // SYNCTHINGWIDGETS_USE_WEBENGINE
|