From 7a98fbec5318c8cfed73ba9863742bed09cae6ce Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Mon, 19 Oct 2015 18:45:14 +0200 Subject: [PATCH] GUI: headers: use the header view manager for the tree This allows the user to hide & show columns and change their order. The manager also restores those settings upon restart. --- src/mkvtoolnix-gui/header_editor/tab.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mkvtoolnix-gui/header_editor/tab.cpp b/src/mkvtoolnix-gui/header_editor/tab.cpp index 42d1608e4..7ba163ab1 100644 --- a/src/mkvtoolnix-gui/header_editor/tab.cpp +++ b/src/mkvtoolnix-gui/header_editor/tab.cpp @@ -23,6 +23,7 @@ #include "mkvtoolnix-gui/header_editor/track_type_page.h" #include "mkvtoolnix-gui/header_editor/unsigned_integer_value_page.h" #include "mkvtoolnix-gui/main_window/main_window.h" +#include "mkvtoolnix-gui/util/header_view_manager.h" #include "mkvtoolnix-gui/util/model.h" #include "mkvtoolnix-gui/util/message_box.h" #include "mkvtoolnix-gui/util/settings.h" @@ -183,6 +184,7 @@ Tab::setupUi() { ui->elements->addAction(m_expandAllAction); ui->elements->addAction(m_collapseAllAction); + Util::HeaderViewManager::create(*ui->elements, "HeaderEditor::Elements"); Util::preventScrollingWithoutFocus(this); connect(ui->elements->selectionModel(), &QItemSelectionModel::currentChanged, this, &Tab::selectionChanged);