update to use qurl in main and mainwindow

fix
This commit is contained in:
2026-02-14 14:30:52 +01:00
parent 63d6ff460b
commit d04493105f
3 changed files with 9 additions and 8 deletions
+5 -4
View File
@@ -41,11 +41,12 @@ int main(int argc, char *argv[])
parser.process(a);
// Initialize the logger
init_logger();
SPDLOG_INFO("Starting GUI");
QString host = parser.value(hostOption);
uint16_t port = parser.value(portOption).toUShort();
MainWindow w(host, port);
QUrl url;
url.setScheme("ws");
url.setHost(parser.value(hostOption));
url.setPort(parser.value(portOption).toInt());
MainWindow w(url);
w.show();
return a.exec();
}