qmlfrontend/Page1.qml
changeset 14920 a3ad06ac390e
parent 14859 aed75d439027
child 15222 b32c52c76977
--- a/qmlfrontend/Page1.qml	Sat May 11 20:43:12 2019 +0200
+++ b/qmlfrontend/Page1.qml	Sat May 11 22:39:55 2019 +0200
@@ -5,6 +5,7 @@
   focus: true
 
   property HWEngine hwEngine
+  property NetSession netSession
 
   Component {
     id: hwEngineComponent
@@ -17,6 +18,15 @@
     }
   }
 
+  Component {
+    id: netSessionComponent
+
+    NetSession {
+      nickname: "test0272"
+      url: "hwnet://gameserver.hedgewars.org:46632"
+    }
+  }
+
   Component.onCompleted: {
     hwEngine = hwEngineComponent.createObject()
   }
@@ -40,6 +50,10 @@
       hwEngine.getPreview()
     }
   }
+  netButton.onClicked: {
+    netSession = netSessionComponent.createObject()
+    netSession.open()
+  }
 
   Keys.onPressed: {
     if (event.key === Qt.Key_Enter)