2 #include <Device/Protocol/ProtocolSettingsWidget.hpp>
4 #include <ossia/network/sockets/configuration.hpp>
17 auto layout =
new QFormLayout{
this};
18 layout->setContentsMargins(0, 0, 0, 0);
20 m_host =
new QLineEdit(
this);
21 m_host->setText(
"ws://127.0.0.1:5567");
23 layout->addRow(tr(
"Url"), m_host);
26 ossia::net::ws_client_configuration settings()
const noexcept
28 ossia::net::ws_client_configuration conf;
29 conf.url = m_host->text().toStdString();
33 void setSettings(
const ossia::net::ws_client_configuration& conf)
35 m_host->setText(QString::fromStdString(conf.url));