+ form_layout_.addRow(tr("Serial &Port"), &serial_devices_);
+ serial_devices_.setEditable(true);
+
+ tcp_host_.setPlaceholderText("192.168.1.100");
+ tcp_endpoint_layout_.addWidget(&tcp_host_);
+ tcp_endpoint_layout_.addWidget(new QLabel(":"));
+ tcp_port_.setRange(1, 65535);
+ tcp_port_.setValue(5555);
+ tcp_endpoint_layout_.addWidget(&tcp_port_);
+ tcp_endpoint_layout_.setContentsMargins(0, 0, 0, 0);
+ form_layout_.addRow(tr("TCP &Endpoint"), &tcp_endpoint_);