    Network selectedNetwork;
  
    WifiUI* wifiWidget;
    WifiManager* wifi = nullptr;
    InputField* inputField;
  
  signals:
    void openKeyboard();
    void closeKeyboard();
  
  private slots:
    void connectToNetwork(Network n);
    void refresh();
    void receiveText(QString text);
 
</s> remove   void receiveText(QString text);
  void abortTextInput();
 </s> add  </s> remove   QStackedLayout* s = nullptr;// keyboard, wifiScreen, advanced
 </s> add   QStackedLayout* s = nullptr; // keyboard, wifiScreen, advanced </s> remove signals:
  void cancel();
  void emitText(QString s);
 </s> add private slots:
  void handleInput(QString s); </s> remove   void successfulConnection(QString ssid);
  void sidebarChange();
 </s> add  </s> remove void Networking::abortTextInput(){
  s->setCurrentIndex(1);
    emit closeKeyboard();
}

void Networking::receiveText(QString text) {
  wifi->disconnect();
  wifi->connect(selectedNetwork, text);
  s->setCurrentIndex(1);
  emit closeKeyboard();
}

 </s> add 
    Network selectedNetwork;
  
    WifiUI* wifiWidget;
    WifiManager* wifi = nullptr;





  
  private slots:
    void connectToNetwork(Network n);
    void refresh();
    void receiveText(QString text);
keep keep keep keep replace replace replace replace replace keep keep keep keep keep
 Qt UI refactoring + improvements (#20033) 
selfdrive/ui/qt/offroad/networking.hpp