move serverAddr to main.cpp (for wasm)
This commit is contained in:
parent
fb425e15fb
commit
9de041e969
|
@ -6,7 +6,7 @@ Item {
|
||||||
scale: 2
|
scale: 2
|
||||||
|
|
||||||
// Change this to your server's IP or domain name
|
// Change this to your server's IP or domain name
|
||||||
property string server_addr: "127.0.0.1:9530"
|
property string server_addr: ServerAddr
|
||||||
|
|
||||||
Frame {
|
Frame {
|
||||||
id: join_server
|
id: join_server
|
||||||
|
|
|
@ -153,6 +153,7 @@ int main(int argc, char *argv[])
|
||||||
system = "Android";
|
system = "Android";
|
||||||
#elif defined(Q_OS_WASM)
|
#elif defined(Q_OS_WASM)
|
||||||
system = "Web";
|
system = "Web";
|
||||||
|
engine->rootContext()->setContextProperty("ServerAddr", "127.0.0.1:9530");
|
||||||
#elif defined(Q_OS_WIN32)
|
#elif defined(Q_OS_WIN32)
|
||||||
system = "Win";
|
system = "Win";
|
||||||
#elif defined(Q_OS_LINUX)
|
#elif defined(Q_OS_LINUX)
|
||||||
|
|
Loading…
Reference in New Issue