  
  #include <QWidget>
  
  #ifdef QCOM2
    const int vwp_w = 2160, vwp_h = 1080;
  #else
    const int vwp_w = 1920, vwp_h = 1080;
 
</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
} </s> remove const int DEFAULT_WIDTH = 1;
const int SPACEBAR_WIDTH = 3;
 </s> add const int DEFAULT_STRETCH = 1;
const int SPACEBAR_STRETCH = 3; </s> remove   QButtonGroup* btn_group = new QButtonGroup(this);
 </s> add   vlayout->setMargin(0);
  vlayout->setSpacing(15); </s> remove class InputField : public QWidget {
 </s> add class InputDialog : public QDialog { </s> remove   explicit InputField(QWidget* parent = 0, int minTextLength = 0);
  void setPromptText(QString text);
  int minTextLength;
 </s> add   explicit InputDialog(QString prompt_text, QWidget* parent = 0);
  static QString getText(QString prompt);
  QString text();
#include <QFontDatabase>
#include <QApplication>

#ifdef QCOM2
#include <qpa/qplatformnativeinterface.h>
#include <QPlatformSurfaceEvent>
#include <wayland-client-protocol.h>
#endif

  
  #include <QWidget>
#include <QFontDatabase>
#include <QApplication>

#ifdef QCOM2
#include <qpa/qplatformnativeinterface.h>
#include <QPlatformSurfaceEvent>
#include <wayland-client-protocol.h>
#endif

  
  #ifdef QCOM2
    const int vwp_w = 2160, vwp_h = 1080;
  #else
    const int vwp_w = 1920, vwp_h = 1080;
keep add keep keep keep keep keep
 Qt UI refactoring + improvements (#20033) 
selfdrive/ui/qt/qt_window.hpp