mirror of
https://github.com/f4exb/sdrangel.git
synced 2025-02-27 07:58:50 -05:00
Fixed sdrbase resource init
This commit is contained in:
parent
af32260b51
commit
1eeb334a8f
@ -143,7 +143,7 @@ set(sdrbase_SOURCES
|
|||||||
|
|
||||||
mainparser.cpp
|
mainparser.cpp
|
||||||
|
|
||||||
resources/res.qrc
|
resources/webapi.qrc
|
||||||
)
|
)
|
||||||
|
|
||||||
set(sdrbase_HEADERS
|
set(sdrbase_HEADERS
|
||||||
|
@ -49,6 +49,7 @@ WebAPIRequestMapper::WebAPIRequestMapper(QObject* parent) :
|
|||||||
HttpRequestHandler(parent),
|
HttpRequestHandler(parent),
|
||||||
m_adapter(0)
|
m_adapter(0)
|
||||||
{
|
{
|
||||||
|
Q_INIT_RESOURCE(webapi);
|
||||||
qtwebapp::HttpDocrootSettings docrootSettings;
|
qtwebapp::HttpDocrootSettings docrootSettings;
|
||||||
docrootSettings.path = ":/webapi";
|
docrootSettings.path = ":/webapi";
|
||||||
m_staticFileController = new qtwebapp::StaticFileController(docrootSettings, parent);
|
m_staticFileController = new qtwebapp::StaticFileController(docrootSettings, parent);
|
||||||
@ -57,6 +58,7 @@ WebAPIRequestMapper::WebAPIRequestMapper(QObject* parent) :
|
|||||||
WebAPIRequestMapper::~WebAPIRequestMapper()
|
WebAPIRequestMapper::~WebAPIRequestMapper()
|
||||||
{
|
{
|
||||||
delete m_staticFileController;
|
delete m_staticFileController;
|
||||||
|
Q_CLEANUP_RESOURCE(webapi);
|
||||||
}
|
}
|
||||||
|
|
||||||
void WebAPIRequestMapper::service(qtwebapp::HttpRequest& request, qtwebapp::HttpResponse& response)
|
void WebAPIRequestMapper::service(qtwebapp::HttpRequest& request, qtwebapp::HttpResponse& response)
|
||||||
|
Loading…
Reference in New Issue
Block a user