mirror of
https://github.com/ysoftdevs/Testa.git
synced 2026-03-21 08:59:50 +01:00
Fixed warnings during compilation
This commit is contained in:
@@ -5,8 +5,8 @@
|
|||||||
|
|
||||||
ApplicationController::ApplicationController(WebEngineView* webEngineView, QObject *parent) :
|
ApplicationController::ApplicationController(WebEngineView* webEngineView, QObject *parent) :
|
||||||
QObject(parent),
|
QObject(parent),
|
||||||
webEngineView(webEngineView),
|
webSocket(new QWebSocket()),
|
||||||
webSocket(new QWebSocket())
|
webEngineView(webEngineView)
|
||||||
{
|
{
|
||||||
connect(webSocket, &QWebSocket::connected, this, &ApplicationController::connected);
|
connect(webSocket, &QWebSocket::connected, this, &ApplicationController::connected);
|
||||||
connect(webSocket, &QWebSocket::textMessageReceived, this, &ApplicationController::messageReceived);
|
connect(webSocket, &QWebSocket::textMessageReceived, this, &ApplicationController::messageReceived);
|
||||||
@@ -45,6 +45,7 @@ void ApplicationController::messageReceived(const QString &message)
|
|||||||
}
|
}
|
||||||
void ApplicationController::error(QAbstractSocket::SocketError error)
|
void ApplicationController::error(QAbstractSocket::SocketError error)
|
||||||
{
|
{
|
||||||
|
Q_UNUSED(error);
|
||||||
qDebug() << webSocket->errorString();
|
qDebug() << webSocket->errorString();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ QT += core gui webenginewidgets websockets
|
|||||||
|
|
||||||
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
|
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
|
||||||
|
|
||||||
TARGET = desktop-shell
|
TARGET = testa
|
||||||
TEMPLATE = app
|
TEMPLATE = app
|
||||||
|
|
||||||
LIBS += -framework CoreData -framework Foundation -framework AppKit
|
LIBS += -framework CoreData -framework Foundation -framework AppKit
|
||||||
|
|||||||
Reference in New Issue
Block a user