        QPixmap pix("../assets/images/network_" + QString::number(strength_scale) + ".png");
        QLabel *icon = new QLabel();
        icon->setPixmap(pix.scaledToWidth(100, Qt::SmoothTransformation));
        icon->setSizePolicy(QSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed));
        hlayout->addWidget(icon);
        hlayout->addSpacing(20);
  
        // connect button
        QPushButton* btn = new QPushButton(network.security_type == SecurityType::UNSUPPORTED ? "Unsupported" : (network.connected == ConnectedType::CONNECTED ? "Connected" : (network.connected == ConnectedType::CONNECTING ? "Connecting" : "Connect")));
        btn->setFixedWidth(400);
        btn->setFixedHeight(button_height);
 
</s> remove     if (i == 1) {
 </s> add     if (vlayout->count() == 1) { </s> remove     inputField->setPromptText("Enter password for \"" + n.ssid + "\"");
    s->setCurrentIndex(0);
    selectedNetwork = n;
    emit openKeyboard();
 </s> add     QString pass = InputDialog::getText("Enter password for \"" + n.ssid + "\"");
    wifi->connect(n, pass); </s> remove   int i = 0;
 </s> add  </s> remove void setMainWindow(QWidget *w);
 </s> add inline void setMainWindow(QWidget *w) {
  const float scale = getenv("SCALE") != NULL ? std::stof(getenv("SCALE")) : 1.0;
  w->setFixedSize(vwp_w*scale, vwp_h*scale);
  w->show();

#ifdef QCOM2
  QPlatformNativeInterface *native = QGuiApplication::platformNativeInterface();
  wl_surface *s = reinterpret_cast<wl_surface*>(native->nativeResourceForWindow("surface", w->windowHandle()));
  wl_surface_set_buffer_transform(s, WL_OUTPUT_TRANSFORM_270);
  wl_surface_commit(s);
  w->showFullScreen();
#endif
}
      hlayout->addWidget(icon, 0, Qt::AlignRight);
        QPixmap pix("../assets/images/network_" + QString::number(strength_scale) + ".png");
        QLabel *icon = new QLabel();
        icon->setPixmap(pix.scaledToWidth(100, Qt::SmoothTransformation));
        icon->setSizePolicy(QSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed));
      hlayout->addWidget(icon, 0, Qt::AlignRight);
      hlayout->addWidget(icon, 0, Qt::AlignRight);
  
        // connect button
        QPushButton* btn = new QPushButton(network.security_type == SecurityType::UNSUPPORTED ? "Unsupported" : (network.connected == ConnectedType::CONNECTED ? "Connected" : (network.connected == ConnectedType::CONNECTING ? "Connecting" : "Connect")));
        btn->setFixedWidth(400);
        btn->setFixedHeight(button_height);
keep keep keep keep replace replace keep keep keep keep keep
 Qt UI refactoring + improvements (#20033) 
selfdrive/ui/qt/offroad/networking.cc