    view->setEditTriggers(QAbstractItemView::NoEditTriggers);
    view->setItemsExpandable(false);
    view->setIndentation(0);
    view->setRootIsDecorated(false);
    view->header()->setSectionsMovable(false);
    main_layout->addWidget(view);
  
    // suppress
    QHBoxLayout *suppress_layout = new QHBoxLayout();
    suppress_add = new QPushButton("Suppress Highlighted");
 
</s> remove   message_header_state = s.value("message_header_state_v2").toByteArray();
 </s> add   message_header_state = s.value("message_header_state_v3").toByteArray(); </s> remove     painter->translate(header()->sectionSize(i), 0);
 </s> add     painter->translate(header()->sectionSize(header()->logicalIndex(i)), 0); </s> remove   messages_widget->restoreHeaderState(settings.message_header_state);
 </s> add 
  // Must be called before setting any header parameters to avoid overriding
  restoreHeaderState(settings.message_header_state);

  view->header()->setSectionsMovable(true);

    view->setEditTriggers(QAbstractItemView::NoEditTriggers);
    view->setItemsExpandable(false);
    view->setIndentation(0);
    view->setRootIsDecorated(false);
  // Must be called before setting any header parameters to avoid overriding
  restoreHeaderState(settings.message_header_state);

  view->header()->setSectionsMovable(true);

    main_layout->addWidget(view);
  
    // suppress
    QHBoxLayout *suppress_layout = new QHBoxLayout();
    suppress_add = new QPushButton("Suppress Highlighted");
keep keep keep keep replace keep keep keep keep keep
 cabana: make head section movable (#27971)

* set sections movable

* change setting key to v3

* add comment

* remove restorestate from MainWindow 
tools/cabana/messageswidget.cc