  
  class HeaderView : public QHeaderView {
  public:
    HeaderView(Qt::Orientation orientation, QWidget *parent = nullptr) : QHeaderView(orientation, parent) {}
    QSize sectionSizeFromContents(int logicalIndex) const;
  };
  
  class HistoryLogModel : public QAbstractTableModel {
    Q_OBJECT
  
 
</s> remove #include <QVBoxLayout>
 </s> add 
  QSize sectionSizeFromContents(int logicalIndex) const override;
  
  class HeaderView : public QHeaderView {
  public:
    HeaderView(Qt::Orientation orientation, QWidget *parent = nullptr) : QHeaderView(orientation, parent) {}
  QSize sectionSizeFromContents(int logicalIndex) const override;
  };
  
  class HistoryLogModel : public QAbstractTableModel {
    Q_OBJECT
  
keep keep keep keep replace keep keep keep keep keep
 Cabana: Reimplement HistoryLog::sizeHintForColumn to improve performance (#26393)

Reimplement sizeHintForColumn to improve performance 
tools/cabana/historylog.h