websocket outline
This commit is contained in:
@@ -93,8 +93,13 @@ MainWindow::MainWindow(QWidget *parent) :
|
||||
rpc = new RPC(this);
|
||||
|
||||
restoreSavedStates();
|
||||
|
||||
createWebsocket();
|
||||
}
|
||||
|
||||
void MainWindow::createWebsocket() {
|
||||
|
||||
}
|
||||
|
||||
void MainWindow::restoreSavedStates() {
|
||||
QSettings s;
|
||||
|
||||
@@ -102,6 +102,8 @@ private:
|
||||
|
||||
void restoreSavedStates();
|
||||
|
||||
void createWebsocket();
|
||||
|
||||
RPC* rpc = nullptr;
|
||||
QCompleter* labelCompleter = nullptr;
|
||||
|
||||
|
||||
@@ -55,6 +55,7 @@
|
||||
#include <QtNetwork/QNetworkRequest>
|
||||
#include <QtNetwork/QNetworkAccessManager>
|
||||
#include <QtNetwork/QNetworkReply>
|
||||
#include <QtWebSockets/QtWebSockets>
|
||||
#include <QJsonDocument>
|
||||
#include <QJsonArray>
|
||||
#include <QJsonObject>
|
||||
|
||||
@@ -10,7 +10,8 @@ CONFIG += precompile_header
|
||||
|
||||
PRECOMPILED_HEADER = src/precompiled.h
|
||||
|
||||
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
|
||||
QT += widgets
|
||||
QT += websockets
|
||||
|
||||
TARGET = zec-qt-wallet
|
||||
|
||||
@@ -100,4 +101,3 @@ ICON = res/logo.icns
|
||||
qnx: target.path = /tmp/$${TARGET}/bin
|
||||
else: unix:!android: target.path = /opt/$${TARGET}/bin
|
||||
!isEmpty(target.path): INSTALLS += target
|
||||
|
||||
|
||||
Reference in New Issue
Block a user