diff --git a/applicationcontroller.cpp b/applicationcontroller.cpp index e1270f6..e2657a5 100644 --- a/applicationcontroller.cpp +++ b/applicationcontroller.cpp @@ -5,8 +5,8 @@ ApplicationController::ApplicationController(WebEngineView* webEngineView, QObject *parent) : QObject(parent), - webEngineView(webEngineView), - webSocket(new QWebSocket()) + webSocket(new QWebSocket()), + webEngineView(webEngineView) { connect(webSocket, &QWebSocket::connected, this, &ApplicationController::connected); connect(webSocket, &QWebSocket::textMessageReceived, this, &ApplicationController::messageReceived); @@ -45,6 +45,7 @@ void ApplicationController::messageReceived(const QString &message) } void ApplicationController::error(QAbstractSocket::SocketError error) { + Q_UNUSED(error); qDebug() << webSocket->errorString(); } diff --git a/testa.pro b/testa.pro index 9316820..a56fd32 100644 --- a/testa.pro +++ b/testa.pro @@ -8,7 +8,7 @@ QT += core gui webenginewidgets websockets greaterThan(QT_MAJOR_VERSION, 4): QT += widgets -TARGET = desktop-shell +TARGET = testa TEMPLATE = app LIBS += -framework CoreData -framework Foundation -framework AppKit